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
npm init -y | |
npm install gulp browser-sync sass gulp-sass --save-dev | |
npm install --global gulp-cli |
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_filter( 'dlm_as3_request_valid_minutes', function ( $minutes, $download, $version, $path ) { | |
return 60; | |
}, 10, 4 ); |
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_filter( 'dlm_as3_request_valid_minutes', function ( $minutes, $download, $version, $path ) { | |
return 1; | |
}, 10, 4 ); |
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 | |
/** | |
* Default output for a download via the [download] shortcode | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} // Exit if accessed directly | |
/** @var DLM_Download $dlm_download */ |
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_action( 'dlm_page_addon_get_category_args', function ( $args ) { | |
$args['orderby'] = 'ID'; | |
$args['order'] = 'DESC'; | |
return $args; | |
}, 11, 1 ); |
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 | |
$link_manager = new RP4WP_Post_Link_Manager(); | |
$related_posts = $link_manager->get_children( get_the_ID() ); |
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_filter( 'dlm_page_addon_get_category_args', function ( $args ) { | |
$args['parent'] = 0; | |
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 | |
// Get the connected posts | |
$child_posts = Post_Connector::API()->get_children( "course", get_the_id() ); | |
$parent_posts = Post_Connector::API()->get_parents( "course", get_the_id() ); | |
$my_connected_posts = array_merge( $child_posts, $parent_posts ); | |
// Check | |
if ( count( $my_connected_posts ) > 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
add_filter( 'pc_display_backwards_linking_same_post_type', function ( $r ) { | |
return true; | |
} ); |
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 | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} // Exit if accessed directly | |
// use Helper namespace in this class, do not remove | |
use Never5\WPCarManager\Helper; | |
?> | |
<tr> |
NewerOlder