This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<li>About me point 1</li> | |
<li>About me point 2</li> | |
<li>About me point 3</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Filter: convert bbcode into html markup for added emphasis to ACF fields. | |
* | |
* @note thanks to StackOverflow https://stackoverflow.com/questions/24200048/show-bbcode-in-html-page-with-php | |
* @return $field | |
*/ | |
add_filter('acf/prepare_field', function($field){ | |
// Are both viable fields empty; else: bail out. | |
if (empty($field['message']) && empty($field['instructions'])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Filter: extend search query to look for custom taxonomies. | |
*/ | |
add_filter('posts_where', function ($where) { | |
global $wpdb; | |
if (is_search()) { | |
$where .= " OR (t.name LIKE '%".get_search_query() . "%' AND {$wpdb->posts}.post_status = 'publish') "; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$finder = PhpCsFixer\Finder::create() | |
->exclude('vendor') | |
->exclude('database/migrations') | |
->exclude('database/seeds') | |
->files('*.php') | |
; | |
return PhpCsFixer\Config::create() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<phpdoc> | |
<target>output</target> | |
<encoding>utf8</encoding> | |
<parser> | |
<target>docs</target> | |
<markers> | |
<item>TODO</item> | |
<item>FIXME</item> | |
</markers> |