Creating Mod of Text Widget
-
I would like to modify the default text widget but keep the original. What is the best way to do this. Can I just copy the code verbatim and add at the top the code at bottom of this post or do I need to change function names or format in anyway other than the changes I want to make?
I basically just want to create a text widget that uses string replace to change certain numbers so that I can have my client easily paste YouTube embed code and have it sized for the sidebar (and we need multiple instances.)
Any help is appreciated.
/*
Plugin Name: MyNewText
Plugin URI: http://mydomain.com
Description: New Text
Author: Me
Version: 1
Author URI: http://mydomain.com
*/
The topic ‘Creating Mod of Text Widget’ is closed to new replies.