当前位置: 首页>>代码示例>>PHP>>正文


PHP self_admin_url函数代码示例

本文整理汇总了PHP中self_admin_url函数的典型用法代码示例。如果您正苦于以下问题:PHP self_admin_url函数的具体用法?PHP self_admin_url怎么用?PHP self_admin_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了self_admin_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: vl_updater_notice

 function vl_updater_notice()
 {
     if (isset($_GET['action']) && $_GET['action'] == 'install-plugin') {
         return;
     }
     if (isset($_GET['action']) && $_GET['action'] == 'dimiss-update-notice') {
         update_option('vl_dismiss_update_notice', 1);
         return;
     }
     $active_plugins = apply_filters('active_plugins', get_option('active_plugins', array()));
     if (in_array('visser-labs-updater/visser-labs-updater.php', $active_plugins)) {
         return;
     }
     if (get_option('vl_dismiss_update_notice', false) == false) {
         $slug = 'visser-labs-updater';
         $install_url = wp_nonce_url(self_admin_url(add_query_arg(array('action' => 'install-plugin', 'plugin' => $slug), 'update.php')), sprintf('install-plugin_%s', $slug));
         $activate_url = add_query_arg(array('action' => 'activate', 'plugin' => urlencode('visser-labs-updater/visser-labs-updater.php'), 'plugin_status' => 'all', 'paged' => 1, '_wpnonce' => urlencode(wp_create_nonce('activate-plugin_visser-labs-updater/visser-labs-updater.php'))), 'plugins.php');
         $dismiss_url = self_admin_url(add_query_arg('action', 'dismiss-update-notice'));
         $is_downloaded = false;
         $message = sprintf(__('<a href="%s">Install the Visser Labs Updater plugin</a> to get updates for your Visser Labs plugins.', 'vl_updater'), esc_url($install_url));
         if ($plugins = array_keys(get_plugins())) {
             foreach ($plugins as $plugin) {
                 if (strpos($plugin, 'visser-labs-updater.php') !== false) {
                     $is_downloaded = true;
                     $message = sprintf(__('<a href="%s">Activate the Visser Labs Updater plugin</a> to get updates for your Visser Labs plugins.', 'vl_updater'), esc_url(admin_url($activate_url)));
                 }
             }
         }
         echo '<div class="updated fade"><p>' . $message . '<span style="float:right;"><a href="' . $dismiss_url . '">' . __('Dismiss', 'vl_updater') . '</a></span></p></div>' . "\n";
     }
 }
开发者ID:GarryVeles,项目名称:Artibaltika,代码行数:31,代码来源:common.php

示例2: pmpro_addon_pmpro_shipping_widget

function pmpro_addon_pmpro_shipping_widget($addon)
{
    /* <img class="addon-thumb" src="<?php echo PMPRO_URL?>/adminpages/addons/images/pmpro-shipping.jpg" /> */
    ?>
<div class="info">							
	<p>Adds shipping fields to the checkout page, confirmation page, confirmation emails, member's list and edit user profile pages.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-shipping/" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-shipping/pmpro-shipping.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-shipping/pmpro-shipping.php'), 'activate-plugin_pmpro-shipping/pmpro-shipping.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-shipping.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:Willislahav,项目名称:paid-memberships-pro,代码行数:29,代码来源:pmpro-shipping.php

示例3: after

 function after()
 {
     if (empty($this->upgrader->result['destination_name'])) {
         return;
     }
     $theme_info = $this->upgrader->theme_info();
     if (empty($theme_info)) {
         return;
     }
     $name = $theme_info['Name'];
     $stylesheet = $this->upgrader->result['destination_name'];
     $template = !empty($theme_info['Template']) ? $theme_info['Template'] : $stylesheet;
     $preview_link = htmlspecialchars(add_query_arg(array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'preview_iframe' => 1, 'TB_iframe' => 'true'), trailingslashit(esc_url(get_option('home')))));
     $activate_link = wp_nonce_url("themes.php?action=activate&amp;template=" . urlencode($template) . "&amp;stylesheet=" . urlencode($stylesheet), 'switch-theme_' . $template);
     $install_actions = array('preview' => '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . esc_attr(sprintf(__('Preview &#8220;%s&#8221;'), $name)) . '">' . __('Preview') . '</a>', 'activate' => '<a href="' . $activate_link . '" class="activatelink" title="' . esc_attr(sprintf(__('Activate &#8220;%s&#8221;'), $name)) . '">' . __('Activate') . '</a>');
     if (is_network_admin() && current_user_can('manage_network_themes')) {
         $install_actions['network_enable'] = '<a href="' . esc_url(wp_nonce_url('themes.php?action=enable&amp;theme=' . $template, 'enable-theme_' . $template)) . '" title="' . esc_attr__('Enable this theme for all sites in this network') . '" target="_parent">' . __('Network Enable') . '</a>';
     }
     $install_actions['themes_page'] = '<a href="' . self_admin_url('themes.php') . '" title="' . esc_attr__('Themes page') . '" target="_parent">' . __('View Installed Themes', 'wp-app-store') . '</a>';
     if (!$this->result || is_wp_error($this->result) || is_network_admin()) {
         unset($install_actions['activate'], $install_actions['preview']);
     }
     $install_actions = apply_filters('install_theme_complete_actions', $install_actions, $this->api, $stylesheet, $theme_info);
     if (!empty($install_actions)) {
         $this->feedback(implode(' | ', (array) $install_actions));
     }
 }
开发者ID:lcw07r,项目名称:productcampamsterdam.org,代码行数:27,代码来源:theme-upgrader-skin.php

示例4: pmpro_addon_pmpro_wp_affiliate_widget

function pmpro_addon_pmpro_wp_affiliate_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-wp-affiliate-platform.jpg" />
<div class="info">							
	<p>Process an affiliate via WP Affiliate Platform after a PMPro checkout.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-wp-affiliate-platform/" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-wp-affiliate-platform/pmpro-wp-affiliate-platform.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-wp-affiliate-platform/pmpro-wp-affiliate-platform.php'), 'activate-plugin_pmpro-wp-affiliate-platform/pmpro-wp-affiliate-platform.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-wp-affiliate-platform.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
				
	</div>							
</div> <!-- end info -->
<?php 
}
开发者ID:nwmcinc,项目名称:paid-memberships-pro,代码行数:33,代码来源:pmpro-wp-affiliate.php

示例5: pmpro_addon_pmpro_addon_packages_widget

function pmpro_addon_pmpro_addon_packages_widget($addon)
{
    ?>
<div class="info">							
	<p>Sell access to individual pages or posts for a flat fee. This is a workaround if you would like to allow multiple membership levels per user.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-addon-packages/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-addon-packages/pmpro-addon-packages.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-addon-packages/pmpro-addon-packages.php'), 'activate-plugin_pmpro-addon-packages/pmpro-addon-packages.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="https://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-addon-packages.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:nwmcinc,项目名称:paid-memberships-pro,代码行数:28,代码来源:pmpro-addon-packages.php

示例6: pmpro_addon_pmpro_network_widget

function pmpro_addon_pmpro_network_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-network.gif" />
<div class="info">							
	<p>Allow users to checkout for a membership to create a site on your WordPress multisite network.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-network/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-network/pmpro-network.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-network/pmpro-network.php'), 'activate-plugin_pmpro-network/pmpro-network.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-network.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:danielcoats,项目名称:schoolpress,代码行数:32,代码来源:pmpro-network.php

示例7: pmpro_addon_pmpro_register_helper_widget

function pmpro_addon_pmpro_register_helper_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-register-helper.gif" />
<div class="info">							
	<p>Add additional meta fields to your PMPro checkout page and/or "Your Profile" pages. Support for text, select, multi-select, textarea, hidden, and custom HTML. Loop into existing checkout/profile field sections or add new ones.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-register-helper/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-register-helper/pmpro-register-helper.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-register-helper/pmpro-register-helper.php'), 'activate-plugin_pmpro-register-helper/pmpro-register-helper.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-register-helper.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:danielcoats,项目名称:schoolpress,代码行数:32,代码来源:pmpro-register-helper.php

示例8: pagination

    public static function pagination($args = array())
    {
        $args = wp_parse_args($args, array('current' => 1, 'total_pages' => 1));
        $current = $args['current'];
        $total_pages = $args['total_pages'];
        $records_link = add_query_arg(array('page' => WP_Stream_Admin::RECORDS_PAGE_SLUG), self_admin_url(WP_Stream_Admin::ADMIN_PARENT_PAGE));
        $html_view_all = sprintf('<a class="%s" title="%s" href="%s">%s</a>', 'view-all', esc_attr__('View all records', 'stream'), esc_url($records_link), esc_html__('View All', 'stream'));
        $page_links = array();
        $disable_first = '';
        $disable_last = '';
        if (1 === $current) {
            $disable_first = ' disabled';
        }
        if ($current === $total_pages) {
            $disable_last = ' disabled';
        }
        $page_links[] = sprintf('<a class="%s" title="%s" href="%s" data-page="1">%s</a>', 'first-page' . $disable_first, esc_attr__('Go to the first page', 'stream'), esc_url(remove_query_arg('paged', $records_link)), '&laquo;');
        $page_links[] = sprintf('<a class="%s" title="%s" href="%s" data-page="%s">%s</a>', 'prev-page' . $disable_first, esc_attr__('Go to the previous page', 'stream'), esc_url(add_query_arg('paged', max(1, $current - 1), $records_link)), max(1, $current - 1), '&lsaquo;');
        $html_total_pages = sprintf('<span class="total-pages">%s</span>', number_format_i18n($total_pages));
        $page_links[] = '<span class="paging-input">' . sprintf(_x('%1$s of %2$s', 'paging', 'stream'), number_format_i18n($current), $html_total_pages) . '</span>';
        $page_links[] = sprintf('<a class="%s" title="%s" href="%s" data-page="%s">%s</a>', 'next-page' . $disable_last, esc_attr__('Go to the next page', 'stream'), esc_url(add_query_arg('paged', min($total_pages, $current + 1), $records_link)), min($total_pages, $current + 1), '&rsaquo;');
        $page_links[] = sprintf('<a class="%s" title="%s" href="%s" data-page="%s">%s</a>', 'last-page' . $disable_last, esc_attr__('Go to the last page', 'stream'), esc_url(add_query_arg('paged', $total_pages, $records_link)), $total_pages, '&raquo;');
        $html_pagination_links = '
			<div class="tablenav">
				<div class="tablenav-pages">
					<span class="pagination-links">' . join("\n", $page_links) . '</span>
				</div>
				<div class="clear"></div>
			</div>';
        echo '<div>' . $html_view_all . $html_pagination_links . '</div>';
        // xss ok
    }
开发者ID:johnleesw,项目名称:mustardseedwp,代码行数:32,代码来源:class-wp-stream-dashboard-widget.php

示例9: pmpro_addon_pmpro_expiration_widget

function pmpro_addon_pmpro_expiration_widget($addon)
{
    ?>
<div class="info">
	<p>Set a specific expiration date (e.g. 2013-12-31) for a PMPro membership level or discount code.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-set-expiration-dates/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-set-expiration-dates/pmpro-set-expiration-dates.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-set-expiration-dates/pmpro-set-expiration-dates.php'), 'activate-plugin_pmpro-set-expiration-dates/pmpro-set-expiration-dates.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-set-expiration-dates.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
				
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:Seravo,项目名称:wp-paid-subscriptions,代码行数:29,代码来源:pmpro-expiration.php

示例10: pmpro_addon_pmpro_infusionsoft_widget

function pmpro_addon_pmpro_infusionsoft_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-infusionsoft.jpg" />
<div class="info">							
	<p>Integrate with Infusionsoft. Add members to email lists (groups, tags) based on their membership level. (Note: works without PMPro as well.)</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-infusionsoft/" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-infusionsoft/pmpro-infusionsoft.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-infusionsoft/pmpro-infusionsoft.php'), 'activate-plugin_pmpro-infusionsoft/pmpro-infusionsoft.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-infusionsoft.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:Willislahav,项目名称:paid-memberships-pro,代码行数:32,代码来源:pmpro-infusionsoft.php

示例11: wp_admin_bar_wp_menu

/**
 * Add the WordPress logo menu.
 *
 * @since 3.3.0
 */
function wp_admin_bar_wp_menu($wp_admin_bar)
{
    /*
    $wp_admin_bar->add_menu( array(
    	'id'    => 'wp-logo',
    	'title' => '<span class="ab-icon"></span>',
    	'href'  => self_admin_url( 'about.php' ),
    	'meta'  => array(
    		'title' => __('About WordPress'),
    	),
    ) );
    */
    if (is_user_logged_in()) {
        // Add "About WordPress" link
        $wp_admin_bar->add_menu(array('parent' => 'wp-logo', 'id' => 'about', 'title' => __('About WordPress'), 'href' => self_admin_url('about.php')));
    }
    // Add WordPress.org link
    $wp_admin_bar->add_menu(array('parent' => 'wp-logo-external', 'id' => 'wporg', 'title' => __('WordPress.org'), 'href' => __('http://wordpress.org/')));
    // Add codex link
    $wp_admin_bar->add_menu(array('parent' => 'wp-logo-external', 'id' => 'documentation', 'title' => __('Documentation'), 'href' => __('http://codex.wordpress.org/')));
    // Add forums link
    $wp_admin_bar->add_menu(array('parent' => 'wp-logo-external', 'id' => 'support-forums', 'title' => __('Support Forums'), 'href' => __('http://wordpress.org/support/')));
    // Add feedback link
    $wp_admin_bar->add_menu(array('parent' => 'wp-logo-external', 'id' => 'feedback', 'title' => __('Feedback'), 'href' => __('http://wordpress.org/support/forum/requests-and-feedback')));
}
开发者ID:par-orillonsoft,项目名称:elearning-wordpress,代码行数:30,代码来源:admin-bar.php

示例12: pmpro_addon_pmpro_mailchimp_widget

function pmpro_addon_pmpro_mailchimp_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-mailchimp.jpg" />
<div class="info">							
	<p>Integrate User Registrations with Mailchimp. Adds members to lists based on their membership level. (Note: works without PMPro as well.)</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-mailchimp/" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-mailchimp/pmpro-mailchimp.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-mailchimp/pmpro-mailchimp.php'), 'activate-plugin_pmpro-mailchimp/pmpro-mailchimp.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=pmpro-mailchimp'), 'install-plugin_pmpro-mailchimp');
        ?>
" class="button button-primary">Download</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:Willislahav,项目名称:paid-memberships-pro,代码行数:35,代码来源:pmpro-mailchimp.php

示例13: pmpro_addon_email_templates_widget

function pmpro_addon_email_templates_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-email-templates.gif" />
<div class="info">							
	<p>Easily edit system-generated Email Templates from the WordPress admin.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="http://wordpress.org/plugins/pmpro-email-templates-addon/" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-email-templates-addon/pmpro-email-templates.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-email-templates-addon/pmpro-email-templates.php'), 'activate-plugin_pmpro-email-templates-addon/pmpro-email-templates.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=pmpro-email-templates-addon'), 'install-plugin_pmpro-email-templates-addon');
        ?>
" class="button button-primary">Download</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:nwmcinc,项目名称:paid-memberships-pro,代码行数:35,代码来源:pmpro-email-templates.php

示例14: pmpro_addon_pmpro_stripe_lite_widget

function pmpro_addon_pmpro_stripe_lite_widget($addon)
{
    ?>
<div class="info">							
	<p>Remove billing fields (not required by Stripe) from the checkout page when using the Stripe payment gateway with PMPro.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-stripe-lite/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-stripe-lite/pmpro-stripe-lite.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-stripe-lite/pmpro-stripe-lite.php'), 'activate-plugin_pmpro-stripe-lite/pmpro-stripe-lite.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-stripe-lite.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:Willislahav,项目名称:paid-memberships-pro,代码行数:28,代码来源:pmpro-stripe-lite.php

示例15: pmpro_addon_wp_bouncer_widget

function pmpro_addon_wp_bouncer_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/wp-bouncer.gif" />
<div class="info">							
	<p>Make sure users are only logged in from one computer or device at a time.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/wp-bouncer/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../wp-bouncer/wp-bouncer.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=wp-bouncer/wp-bouncer.php'), 'activate-plugin_wp-bouncer/wp-bouncer.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=wp-bouncer'), 'install-plugin_wp-bouncer');
        ?>
" class="button button-primary">Download</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:Willislahav,项目名称:paid-memberships-pro,代码行数:35,代码来源:wp-bouncer.php


注:本文中的self_admin_url函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。