This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* LearnDash LMS for Custom Bulk/Quick Edit plugin | |
* | |
* Download and unpack this Gist into your theme folder. Then include this script itself in your theme's `functions.php` file via… | |
* | |
* require_once get_stylesheet_directory() . '/35b676bb68eee50737f3/cbqe-learndash-lms.php'; | |
* | |
* In WordPress Admin > Settings > Custom Bulk/Quick, configure your fields as needed, per below. If configuration updates are needed, either manually edit them or remove the current field configuration and click Save Changes for automatic updates. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Restrict Content Pro for Custom Bulk/Quick Edit plugin | |
* | |
* In WordPress Admin > Settings > Custom Bulk/Quick, configure your fields as needed, per below. If configuration updates are needed, either manually edit them or remove the current field configuration and click Save Changes for automatic updates. | |
* | |
* Paid Only? - As checkbox | |
* Show Excerpt? - As checkbox | |
* Hide from Feed? - As checkbox | |
* Access Level - As RCP Access Level |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Pilot Press integration for Custom Bulk/Quick Edit plugin | |
* | |
* @author Michael Cannon <[email protected]> | |
*/ | |
add_filter( 'manage_post_posts_columns', 'rgp_manage_post_posts_columns' ); | |
add_filter( 'manage_guitarlessons_posts_columns', 'rgp_manage_post_posts_columns' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'edd_add_to_cart_item', 'aihrus_add_to_cart_item' ); | |
function aihrus_add_to_cart_item( $item ) { | |
if ( empty( $_GET['edd_license_key'] ) ) { | |
return $item; | |
} else { | |
$license = ! empty( $_GET['edd_license_key'] ) ? sanitize_text_field( $_GET['edd_license_key'] ) : false; | |
if ( ! $license ) { | |
return $item; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filer( 'tba_register_post_type_args', 'my_tba_register_post_type_args' ); | |
function my_tba_register_post_type_args( $args ) { | |
$args['exclude_from_search'] = true; | |
return $args; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @Author Anonymous | |
* @link http://www.redrokk.com | |
* @Package Wordpress | |
* @SubPackage RedRokk Library | |
* | |
* @version 2.0 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'cbqe_post_types_ignore', 'bhc_cbqe_post_types_ignore' ); | |
function bhc_cbqe_post_types_ignore( $post_types ) { | |
foreach ( $post_types as $key => $value ) { | |
if ( 'page' == $value ) | |
unset( $post_types[ $key ] ); | |
} | |
return $post_types; | |
} |
NewerOlder