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


PHP pmpro_add_addon函数代码示例

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


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


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