芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/wp-mail-smtp/src/Admin/PageAbstract.php
parent_page = $parent_page; } /** * @inheritdoc */ public function get_link() { $page = Area::SLUG; if ( $this->parent_page !== null ) { $page .= '-' . $this->parent_page->get_slug(); } return add_query_arg( 'tab', $this->slug, WP::admin_url( 'admin.php?page=' . $page ) ); } /** * Title of a tab. * * @since 3.7.0 * * @return string */ public function get_title() { return $this->get_label(); } /** * Get tab slug. * * @since 2.8.0 * * @return string */ public function get_slug() { return $this->slug; } /** * Get tab priority. * * @since 2.8.0 * * @return int */ public function get_priority() { return $this->priority; } /** * Get parent page. * * @since 2.8.0 * * @return ParentPageAbstract */ public function get_parent_page() { return $this->parent_page; } /** * Get parent page slug. * * @since 3.0.0 * * @return string */ public function get_parent_slug() { if ( is_null( $this->parent_page ) ) { return ''; } return $this->parent_page->get_slug(); } /** * Register tab related hooks. * * @since 2.8.0 */ public function hooks() {} /** * Register tab related ajax hooks. * * @since 3.0.0 */ public function ajax() {} /** * Process tab form submission ($_POST ). * * @since 1.0.0 * * @param array $data $_POST data specific for the plugin. */ public function process_post( $data ) {} /** * Process tab & mailer specific Auth actions. * * @since 1.0.0 */ public function process_auth() {} /** * Print the nonce field for a specific tab. * * @since 1.0.0 */ public function wp_nonce_field() { wp_nonce_field( Area::SLUG . '-' . $this->slug ); } /** * Make sure that a user was referred from plugin admin page. * To avoid security problems. * * @since 1.0.0 */ public function check_admin_referer() { check_admin_referer( Area::SLUG . '-' . $this->slug ); } /** * Save button to be reused on other tabs. * * @since 1.5.0 */ public function display_save_btn() { ?>
post_form_hidden_field(); } /** * Form hidden field for identifying plugin POST requests. * * @since 2.9.0 */ public function post_form_hidden_field() { echo '
'; } }