Note: The archives category content is an automatically generated focus channel and does not neccessarily reflect the opinions of this blog. No responsibility is taken for the external links presented here, follow at your own discretion.
The archives content is never scraped from sites - but an abstract obtained from search engines.
| Problem |
Solution |
Example |
Reference |
Recommended |
This was a million times easier than I thought it was going to be. step 1: mkdir wordpress/wp-content/plugins/YourPluginName step 2: vi wordpress/wp-content/plugins/YourPluginName/Your Plugin Name.php step 3: activate your plugin
|
|
| Problem |
Solution |
Example |
Reference |
Recommended |
Here I want to substitute the following tags, with content wrapping. [problem] … [/problem] Put simply /* Plugin Name: php-coding-school Plugin URI: http://php.coding-school.com/php-coding.school.php Description: wraps content, etc Version: 1.0 Author: marcus Author URI: http://php.coding-school.com */ add_filter('the_content', 'mp_wrap_content'); function mp_wrap_content($content) { $search_strings='Your pattern to replace'; $end_strings='Your replacement'; $content = str_replace($search_strings,$end_strings, $content); … return $content; } ?>
|
Leave a Reply
You must be logged in to post a comment.