very please help in Plugins
-
I would like to enter the code below the following features.
To have added a button to edit the posts to post then referred to as secret in the secret party and I showed him where you could add that this post can see if someone can help me or at least imputation of any function should use?Provides plug-in code:
<?php function specialpage_menu() { add_pages_page(__('Special Page', 'specialpage'), __('Special Page', 'specialpage'), 'edit_pages', 'specialpage', 'specialpage'); } add_filter('plugin_row_meta', 'specialpage_set_plugin_meta', 10, 2 ); add_action('admin_menu', 'specialpage_menu'); function specialpage() { global $wpdb; $parentID = 0; if (isset($_POST['btnSubPages'])) { $parentID = $_POST['pages']; } elseif (isset($_POST['hdnParentID'])) { $parentID = $_POST['hdnParentID']; } if (isset($_POST['btnReturnParent'])) { $parentsParent = $wpdb->get_row("SELECT post_parent FROM $wpdb->posts WHERE ID = " . $_POST['hdnParentID'], ARRAY_N); $parentID = $parentsParent[0]; } if(isset($_GET['hideNote'])) { update_option('specialpage_hideNote', '1'); } $success = ""; if (isset($_POST['btnOrderPages'])) { $success = specialpage_updateOrder(); } $subPageStr = specialpage_getSubPages($parentID); } ?>
- The topic ‘very please help in Plugins’ is closed to new replies.