BY talks about -wordpress talk about plugin release and feedback

BY talks about -wordpress talk about plugin release and feedback

Wordpress works 3 years ago (2015-08-20) Views: 7 Comments: 0

A plug-in introduction WordPress is one of the most popular blogging programs, but there are no other "microlingual" features of some blogging CMS programs.Sometimes we just want to express our emotions in one or two sentences. We want to send a micro-blog using wordpress and send a talk. There is no need to write a story about growing up, and if the number of words is lost, the truth of “crying hair” is completely lost.The last time I wrote an article written in wordpress, the visiting friends were very enthusiastic and wanted to make plug-ins. This plug-in is at the request of many users to provide wordpress function, wordpress can not only lengthy, but can be overstated. Second, the use of attention Since I am not a professional wordpress developer, there is not a lot of time to optimize this feature.This plug-in provides features such as publishing and speaking. As for the style of the page, the interface file only shares what I am using. My interface style may not be suitable for you. This may require you to adapt the presentation page according to your theme. Layout and style. Third, the plug-in screenshot Preview address: http://wangbaiyuan.cn/shuoshuo Computer interface: Mobile

WordPress function hook (Hook) (3)

WordPress function hook (Hook) (3)

Hundred Encyclopedias 4 years ago (2015-05-29) Views: 3 Comments: 0

Management interface related Activate_ (plugin file name) This action function is executed the first time a plugin is activated.See the commonly used function -register_activation_hook. Activity_box_end This action function is performed at the end of the active box on the dashboard interface. Add_category_form_pre This action function is executed when the added category text box is not displayed on the interface of the management menu. Admin_head Perform this action function in the <head> HTML block of the dashboard. Admin_head-(page_hook) or admin_head-(plguin_page) This action function is executed in the HTML section <head> of the dashboard of the page generated by the plugin. Admin_init Perform this action function before loading the management interface.See wp-admin/admin.php, wp-admin/admin-post.php, and wp-admin/admin-ajax.php. Admin_footer This action function is performed at the end of the dashboard in the main tab. Admin_print_scripts This action function is executed in the header portion of the HTML to allow the plug-in to add JavaScript scripts to all management interfaces. Admin_print_styles This action function is performed in the header portion of the HTML to allow the plug-in to add CSS or style sheets to all management interfaces. Admin_print_scripts-(page_hook) or admin_print_scripts-(plugin_page) This action function is executed to input the JavaScript script into the HTML message header portion

WordPress function hook (2)

WordPress function hook (2)

Hundred Encyclopedias 4 years ago (2015-05-29) Views: 0 Comments: 0

Backlink action hook function Add_link This action function is executed when the new backlink is added to the database for the first time.Function received parameters: link ID. Delete_link Perform this action function when deleting a backlink.Function received parameters: link ID. Edit_link Perform this action function when editing a backlink.Function received parameters: link ID. Feed action hook function Atom_entry In the atom subscription, after displaying a blog post (but before closing the log tag), this action function is executed. Atom_head In the atom subscription, after displaying the subscribed blog information, the action function is executed before the first blog of the blog is displayed. Atom_ns performs this action function (to add a namespace) for the root XML element of the atom subscription. Commentrss2_item In the comment subscription, after displaying a piece of comment information (but before closing the tag of the comment), this action function is executed.Function received parameters: comment ID, log ID. Do_feed_(feed) This action function is executed when the subscription information is generated. The subscription refers to the subscription type (rss2, atom, rdf, etc.).The priority for displaying subscription information should be less than 10.The parameters received by the function: true (comment subscription), or false (log subscription). Rdf_header In the

WordPress function hook (1)

WordPress function hook (1)

Hundred Encyclopedias 4 years ago (2015-05-27) Views: 6 Comments: 0

An action hook that runs in a typical request When a logged-in user opens the site home page in the default theme, WordPress runs the following action hook function: Plugins_loaded Sanitize_comment_cookies Setup_theme Auth_cookie_malformed Auth_cookie_valid Set_current_user Init Widgets_init Parse_request Send_headers Pre_get_posts Posts_selection Wp Template_redirect Get_header Wp_head Wp_print_styles Wp_print_scripts Loop_start Loop_end Get_sidebar Wp_meta Get_footer Wp_footer Second, log, page, attachment and category-related action hook function Add_attachment When the attachment file first joins the database, the add_attachment function is executed.Function received parameters: Attachment ID. Add_category Same as create_category. Clean_post_cache When clearing the log cache, execute this action function.Function received parameters: log ID.See clean_post_cache(). Create_category When a new category is generated, this action function is executed.Function received parameters: Category ID. Delete_attachment After removing a category from the database and the corresponding link/log, execute the action function.Function received parameters: Category ID. Delete_post This action function is executed when a log or page is to be deleted.Function received parameters: log ID or page ID. Deleted_post After deleting a log or page, execute the action function.Function received parameters: log ID or page ID. Edit_attachment This action function is executed when the attachment file in the database is updated.Function received parameters: Attachment ID. Edit_category When you update/edit a category

WordPress plugin development add_menu_page() function explain

WordPress plugin development add_menu_page() function explain

Software development 4 years ago (2015-03-20) Views: 3 Comments: 0

The add_menu_page() function adds a management menu page to wordpress's management background. usage: Parameter Description: 1.$page_title (string) (required) text is the title tag of the web page displayed in the menu Default: None 2.$menu_title (string) (required) text of the menu screen name Default: None 3. $capability (string) (required) This menu is displayed to the user's desired ability.The user level is outdated and should not be used here! Default: None 4.$menu_slug (string) (required) The name of the slug stream to refer to this menu (should be unique for this menu). This was called file (or processing) parameter before version 3.If the function's parameters are omitted, this menu_slug should be the contents of the PHP file processing menu page. Default: None 5.$function (string) (optional) Function to display the page content of the menu page. Default: None. Technically, the parameters of the function are optional, but if it is not provided, then WordPress will assume that including the PHP file will generate a management screen without calling a function.Most plug-in authors choose to generate page code within the function's main plug-in file.If the parameter of the function is specified, it can be used for any string of file parameters.This allows use of pages

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW