• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP pmpro_add_addon函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: pmpro_add_addon

<?php

/*
	Addon: PMPro Network
	Slug: pmpro-network-subsite
*/
pmpro_add_addon('github', array('title' => 'PMPro Network Subsite Helper', 'version' => '.2', 'widget' => 'pmpro_addon_pmpro_network_subsite_widget', 'enabled' => function_exists('pmpron_subsite_activated_plugin')));
function pmpro_addon_pmpro_network_subsite_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-network.gif" />
<div class="info">							
	<p>Have network subsites use membership data from a "main" site to handle access restrictions.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-network-subsite" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-network-subsite/pmpro-network-subsite.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-network-subsite/pmpro-network-subsite.php'), 'activate-plugin_pmpro-network-subsite/pmpro-network-subsite.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
开发者ID:nwmcinc,项目名称:paid-memberships-pro,代码行数:31,代码来源:pmpro-network-subsite.php


示例2: pmpro_add_addon

<?php

/*
	Addon: PMPro bbPress
	Slug: pmpro-bbpress
*/
pmpro_add_addon('gists', array('title' => 'PMPro bbPress', 'version' => '.1', 'widget' => 'pmpro_addon_pmpro_bbpress_widget', 'enabled' => function_exists('pmpro_check_forum')));
function pmpro_addon_pmpro_bbpress_widget($addon)
{
    ?>
<div class="info">
	<p>Locking down bbPress Forums by Membership Level and Forum ID.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/1633637" class="button">Enabled</a>
		<?php 
    } else {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/1633637" class="button button-primary">View Gist</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:Willislahav,项目名称:paid-memberships-pro,代码行数:28,代码来源:pmpro-bbpress.php


示例3: pmpro_add_addon

<?php

/*
	Addon: PMPro Addon Packages
	Slug: pmpro-addon-packages
*/
pmpro_add_addon('github', array('title' => 'PMPro Addon Packages', 'version' => '.4.3', 'widget' => 'pmpro_addon_pmpro_addon_packages_widget', 'enabled' => function_exists('pmproap_post_meta')));
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 
    }
    ?>
开发者ID:nwmcinc,项目名称:paid-memberships-pro,代码行数:31,代码来源:pmpro-addon-packages.php


示例4: pmpro_add_addon

<?php

/*
	Addon: PMPro Shipping Add On
	Slug: pmpro-shipping
*/
pmpro_add_addon('github', array('title' => 'PMPro Shipping Add On', 'version' => '.2.2.1', 'widget' => 'pmpro_addon_pmpro_shipping_widget', 'enabled' => function_exists('pmproship_pmpro_checkout_boxes')));
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 
    }
开发者ID:Willislahav,项目名称:paid-memberships-pro,代码行数:31,代码来源:pmpro-shipping.php


示例5: pmpro_add_addon

<?php

/*
	Addon: PMPro Register Helper
	Slug: pmpro-register-helper
*/
pmpro_add_addon('github', array('title' => 'PMPro Register Helper', 'version' => '.5.11', 'widget' => 'pmpro_addon_pmpro_register_helper_widget', 'enabled' => class_exists('PMProRH_Field')));
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 {
        ?>
开发者ID:danielcoats,项目名称:schoolpress,代码行数:31,代码来源:pmpro-register-helper.php


示例6: pmpro_add_addon

<?php

/*
	Addon: PMPro WP Affiliate Platform Integration
	Slug: pmpro-wp-affiliate
*/
pmpro_add_addon('thirdparty', array('title' => 'PMPro WP Affiliate Platform Integration', 'version' => '.3', 'widget' => 'pmpro_addon_pmpro_wp_affiliate_widget', 'enabled' => function_exists('wpa_pmpro_after_checkout')));
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 {
        ?>
开发者ID:nwmcinc,项目名称:paid-memberships-pro,代码行数:31,代码来源:pmpro-wp-affiliate.php


示例7: pmpro_add_addon

<?php

/*
	Addon: PMPro Disable PMPro Emails
	Slug: pmpro-disable-emails
*/
pmpro_add_addon('gists', array('title' => 'PMPro Disable Emails', 'version' => '.1', 'widget' => 'pmpro_addon_pmpro_disable_emails_widget', 'enabled' => function_exists('dae_pmpro_email_recipient')));
function pmpro_addon_pmpro_disable_emails_widget($addon)
{
    ?>
<div class="info">
	<p>Disable all or specific emails sent by the PMPro plugin.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/3667545" class="button">Enabled</a>
		<?php 
    } else {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/3667545" class="button button-primary">View Gist</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:nwmcinc,项目名称:paid-memberships-pro,代码行数:28,代码来源:pmpro-disable-emails.php


示例8: pmpro_add_addon

<?php

/*
	Addon: PMPro Network
	Slug: pmpro-network
*/
pmpro_add_addon('github', array('title' => 'PMPro Network', 'version' => '.3.1', 'widget' => 'pmpro_addon_pmpro_network_widget', 'enabled' => function_exists('pmpron_new_blogs_settings')));
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 {
        ?>
开发者ID:danielcoats,项目名称:schoolpress,代码行数:31,代码来源:pmpro-network.php


示例9: pmpro_add_addon

<?php

/*
	Addon: PMPro Email Templates Editor
	Slug: pmpro-email-templates-addon
*/
pmpro_add_addon('repo', array('title' => 'PMPro Email Templates', 'version' => '.5.2', 'widget' => 'pmpro_addon_email_templates_widget', 'enabled' => function_exists('pmproet_scripts')));
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 {
        ?>
开发者ID:nwmcinc,项目名称:paid-memberships-pro,代码行数:31,代码来源:pmpro-email-templates.php


示例10: pmpro_add_addon

<?php

/*
	Addon: PMPro Infusionsoft Integration
	Slug: pmpro-infusionsoft
*/
pmpro_add_addon('thirdparty', array('title' => 'PMPro Infusionsoft Integration', 'version' => '.1', 'widget' => 'pmpro_addon_pmpro_infusionsoft_widget', 'enabled' => function_exists('pmprois_init')));
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 {
        ?>
开发者ID:Willislahav,项目名称:paid-memberships-pro,代码行数:31,代码来源:pmpro-infusionsoft.php


示例11: pmpro_add_addon

<?php

/*
	Addon: PMPro Stripe Lite
	Slug: pmpro-stripe-lite
*/
pmpro_add_addon('github', array('title' => 'PMPro Stripe Lite', 'version' => '.1.1', 'widget' => 'pmpro_addon_pmpro_stripe_lite_widget', 'enabled' => function_exists('pmprosl_pmpro_pages_shortcode_checkout')));
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 
    }
    ?>
开发者ID:Willislahav,项目名称:paid-memberships-pro,代码行数:31,代码来源:pmpro-stripe-lite.php


示例12: pmpro_add_addon

<?php

/*
	Addon: PMPro Require Code to Register
	Slug: pmpro-require-code-to-register
*/
pmpro_add_addon('gists', array('title' => 'PMPro Require a Code to Register', 'version' => '.1', 'widget' => 'pmpro_addon_pmpro_require_code_to_register_widget', 'enabled' => function_exists('my_pmpro_registration_checks_require_code_to_register')));
function pmpro_addon_pmpro_require_code_to_register_widget($addon)
{
    ?>
<div class="info">
	<p>Require a discount code to checkout for a specific level.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/5573829" class="button">Enabled</a>
		<?php 
    } else {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/5573829" class="button button-primary">View Gist</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:nwmcinc,项目名称:paid-memberships-pro,代码行数:28,代码来源:pmpro-require-code-to-register.php


示例13: pmpro_add_addon

<?php

/*
	Addon: PMPro Expiration Date
	Slug: pmpro-expiration
*/
pmpro_add_addon('gists', array('title' => 'PMPro Expiration Date', 'version' => '.1', 'widget' => 'pmpro_addon_pmpro_expiration_widget', 'enabled' => function_exists('my_pmpro_checkout_level_specific_expiration')));
function pmpro_addon_pmpro_expiration_widget($addon)
{
    ?>
<div class="info">
	<p>Set a specific expiration date for a Membership Level.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/5709300" class="button">Enabled</a>
		<?php 
    } else {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/5709300" class="button button-primary">View Gist</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
开发者ID:Willislahav,项目名称:paid-memberships-pro,代码行数:28,代码来源:pmpro-expiration.php


示例14: pmpro_add_addon

<?php

/*
	Addon: WP Bouncer
	Slug: wp-bouncer
*/
pmpro_add_addon('repo', array('title' => 'WP Bouncer', 'version' => '1.0.1', 'widget' => 'pmpro_addon_wp_bouncer_widget', 'enabled' => class_exists('WP_Bouncer')));
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 {
        ?>
开发者ID:Willislahav,项目名称:paid-memberships-pro,代码行数:31,代码来源:wp-bouncer.php


示例15: pmpro_add_addon

<?php

/*
	Addon: PMPro MailChimp Integration
	Slug: pmpro-mailchimp
*/
pmpro_add_addon('thirdparty', array('title' => 'PMPro MailChimp Integration', 'version' => '.3.4', 'widget' => 'pmpro_addon_pmpro_mailchimp_widget', 'enabled' => function_exists('pmpromc_init')));
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="<?php 
        echo admin_url("plugins.php");
        ?>
" 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>
开发者ID:danielcoats,项目名称:schoolpress,代码行数:31,代码来源:pmpro-mailchimp.php


示例16: pmpro_add_addon

<?php

/*
	Addon: Theme My Login
	Slug: pmpro-tml
*/
pmpro_add_addon('recommended', array('title' => 'Theme My Login', 'widget' => 'pmpro_addon_tml_widget', 'enabled' => class_exists('Theme_My_Login'), 'version' => '6.3.10'));
function pmpro_addon_tml_widget($addon)
{
    ?>
<div class="info">							
	<p>This plugin themes the WordPress login, registration and forgot password pages according to your current theme. By <a href="http://www.jfarthing.com/" target="_blank">Jeff Farthing</a></p>
	<div class="actions">							
		<form method="post" name="component-actions" action="">
			<?php 
    if ($addon['enabled']) {
        ?>
				<a href="<?php 
        echo admin_url("plugins.php");
        ?>
" class="button">Enabled</a>
			<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../theme-my-login/theme-my-login.php")) {
        ?>
				<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=theme-my-login/theme-my-login.php'), 'activate-plugin_theme-my-login/theme-my-login.php');
        ?>
" class="button button-primary">Activate</a>
			<?php 
    } else {
        ?>
开发者ID:Seravo,项目名称:wp-paid-subscriptions,代码行数:31,代码来源:tml.php


示例17: pmpro_add_addon

<?php

/*
	Addon: PMPro Expiration Date
	Slug: pmpro-expiration
*/
pmpro_add_addon('github', array('title' => 'PMPro Set Expiration Dates', 'version' => '.1.1', 'widget' => 'pmpro_addon_pmpro_expiration_widget', 'enabled' => function_exists('pmprosed_pmpro_checkout_level')));
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 
    }
    ?>
开发者ID:Seravo,项目名称:wp-paid-subscriptions,代码行数:31,代码来源:pmpro-expiration.php


示例18: pmpro_add_addon

<?php

/*
	Addon: PMPro bbPress
	Slug: pmpro-bbpress
*/
pmpro_add_addon('repo', array('title' => 'PMPro bbPress', 'version' => '1.0.1', 'widget' => 'pmpro_addon_pmpro_bbpress_widget', 'enabled' => function_exists('pmprobbp_add_meta_box')));
function pmpro_addon_pmpro_bbpress_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-bbpress.jpg" />
<div class="info">
	<p>Locking down bbPress Forums by Membership Level and Forum ID.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="<?php 
        echo admin_url("plugins.php");
        ?>
" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-bbpress/pmpro-bbpress.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-bbpress/pmpro-bbpress.php'), 'activate-plugin_pmpro-bbpress/pmpro-bbpress.php');
        ?>
" class="button button-primary">Activate</a>
开发者ID:nwmcinc,项目名称:paid-memberships-pro,代码行数:31,代码来源:pmpro-bbpress.php


示例19: pmpro_add_addon

<?php

/*
	Addon: PMPro User Pages
	Slug: pmpro-user-pages
*/
pmpro_add_addon('github', array('title' => 'PMPro User Pages', 'version' => '.3', 'widget' => 'pmpro_addon_pmpro_user_pages_widget', 'enabled' => function_exists('pmproup_pmpro_after_checkout')));
function pmpro_addon_pmpro_user_pages_widget($addon)
{
    ?>
<div class="info">				
	<p>Creates a unique page for each Member after checkout, giving the Admin access to write customized content for each specific member.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-user-pages/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-user-pages/pmpro-user-pages.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-user-pages/pmpro-user-pages.php'), 'activate-plugin_pmpro-user-pages/pmpro-user-pages.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-user-pages.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
开发者ID:danielcoats,项目名称:schoolpress,代码行数:31,代码来源:pmpro-user-pages.php


示例20: pmpro_add_addon

<?php

/*
	Addon: PMPro Affiliates
	Slug: pmpro-affiliates
*/
pmpro_add_addon('github', array('title' => 'PMPro Affiliates', 'version' => '.2.2', 'widget' => 'pmpro_addon_pmpro_affiliates_widget', 'enabled' => function_exists('pmpro_affiliates_dependencies')));
function pmpro_addon_pmpro_affiliates_widget($addon)
{
    ?>
<div class="info">							
	<p>Lightweight Affiliate system. Create affiliate accounts and codes; tracks checkouts by affiliate account.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-affiliates/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-affiliates/pmpro-affiliates.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-affiliates/pmpro-affiliates.php'), 'activate-plugin_pmpro-affiliates/pmpro-affiliates.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-affiliates/archive/master.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
开发者ID:Willislahav,项目名称:paid-memberships-pro,代码行数:31,代码来源:pmpro-affiliates.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP pmpro_changeMembershipLevel函数代码示例发布时间:2022-05-15
下一篇:
PHP pmidsarr函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap