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
function custom_docu_doc_post_type_args( $docu_args ) { | |
$docu_args['rewrite'] = array('slug' => 'document'); | |
return $docu_args; | |
} | |
add_filter( 'docu_doc_post_type_args', 'custom_docu_doc_post_type_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
function custom_docu_doc_category_args( $category_args ) { | |
$category_args['rewrite'] = array('slug' => 'documents' ); | |
return $category_args; | |
} | |
add_filter( 'docu_doc_category_args', 'custom_docu_doc_category_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
function custom_docu_doc_category_labels( $category_labels ) { | |
$category_labels['name'] = _x( 'My Category', 'taxonomy custom name' , 'my-text-domain' ); | |
$category_labels['menu_name'] = __( 'My Categories', 'my-text-domain' ); | |
return $category_labels; | |
} | |
add_filter( 'docu_doc_category_labels', 'custom_docu_doc_category_labels' ); |
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
function custom_docu_doc_post_type_labels( $docu_labels ) { | |
$docu_labels['menu_name'] = __('Documents', 'my-text-domain'); | |
return $docu_labels; | |
} | |
add_filter( 'docu_doc_post_type_labels', 'custom_docu_doc_post_type_labels' ); |
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
function custom_docu_before_index_content() { | |
echo '<h1>Before content</h1>'; | |
} | |
add_action( 'docu_before_index_content', 'custom_docu_before_index_content' ); |
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
function custom_docu_after_index_content() { | |
echo '<h1>After content</h1>'; | |
} | |
add_action( 'docu_after_index_content', 'custom_docu_after_index_content' ); |
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
/* | |
Theme Name: Twenty Fifteen Child | |
Theme URI: http://example.com/twenty-fifteen-child/ | |
Description: Twenty Fifteen Child Theme | |
Author: John Doe | |
Author URI: http://example.com | |
Template: twentyfifteen | |
Version: 1.0.0 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); | |
function theme_enqueue_styles() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); | |
} | |
?> |
OlderNewer