Yesterday, filescn asked the forum how to modify the RSS address in the Widget feature of WP. I did not think about this kind of problem before, so I checked, some people said that the Wordpress built-in Widget code is written in the wp-includeswidgets.php, but I did not find (WordPress version 2.8, previous versions do not understand ), found a default-widgets.p under the Directory
Yesterday, filescn asked the forum how to modify the RSS address in the Widget feature of WP. I haven't considered this kind of problem before, so I checked it. Some people said that the built-in Wordpress Widget code is written in/wp-uplodes/widgets. php, but I did not find (WordPress version 2.8, previous versions do not understand), found that there is a default-widgets.p under the Directory
Yesterday, filescn asked the forum how to modify the RSS address in the "function" of the WordPress built-in Widget. I haven't considered this kind of problem before, so I checked it. Some people said that the built-in Wordpress Widget code is written in/wp-uplodes/widgets. php, but I did not find (WordPress version 2.8, previous versions do not understand), found that there is a default-widgets.php under the directory, it must be it.
It seems that every Widget in the default-widgets.php is written as a class. To modify a Widget, you only need to find the corresponding class. Take "function" as an example to find the corresponding class "WP_Widget_Meta ". The following code is provided in this class:
This section is output for widgets
The Wordpress built-in Widgets and its class name are attached as follows:
Widget name |
Widget Class Name |
Widget Introduction |
Page |
WP_Widget_Pages |
WordPress page of your blog |
Calendar |
WP_Widget_Calendar |
Document calendar of your blog |
Document index Template |
WP_Widget_Archives |
Monthly archive of your blog posts |
Link |
WP_Widget_Links |
Your chain table |
Function |
WP_Widget_Meta |
Login/logout, management, Feed and WordPress links |
Search |
WP_Widget_Search |
Search box for your blog |
Text |
WP_Widget_Text |
Arbitrary text or HTML |
CATEGORY directory |
WP_Widget_Categories |
List or category directory of the drop-down menu |
Recent articles |
WP_Widget_Recent_Posts |
Recent articles on your blog |
Latest comments |
WP_Widget_Recent_Comments |
Display the latest comment list on the sidebar |
RSS |
WP_Widget_RSS |
Entries from any RSS or Atom feed |
WP_Widget_Tag_Cloud |
The most common |
You may also like:
- Display the summary on the WordPress Homepage
-
- WordPress for Android: easy to write blogs on mobile phones ~
- How can I transfer a WordPress blog from one space to another?