Skip to main content
added 157 characters in body
Source Link

I want to change a meta-box title on the create question page from- "LearnDash Quiz Settings" to "Quiz Settings" on create question page.

I have seen a few posts that explain changing custom posts meta titles but no luck here.

I am attempting to add the changes to a MU custom functions plugin, rather than the theme's functions.php file.

I am admittedly lost on how to do this and have been messing with variations of the following code. newbness ahead... here's a img link illustrating what I'm trying to do. http://take.ms/evyiL

The following code changes the title from LearnDash Question Settings metabox title to Question Settings

add_action('do_meta_boxes', 'my_customize_meta_boxes'); //using do_meta_boxes also allows plugin metaboxes to be modified
function my_customize_meta_boxes(){
  $post_types = get_post_types();
  remove_meta_box( 'sfwd-question_quiz', $post_types, 'normal' );
  add_meta_box('sfwd-question_quiz', __('Quiz Question Settings'), '', $post_types, 'side', 'default', 'sfwd-question');
}

The following code is used to get this to work with your custom meta's

add_action('add_meta_boxes', 'change_meta_box_titles', 999);
function change_meta_box_titles() {
    global $wp_meta_boxes; // array of defined meta boxes
    // cycle through the array, change the titles you want

unset( $wp_meta_boxes ['post']['side']['core']['sfwd-question_quiz']
);
add_meta_box('sfwd-question_quiz',
__('Quiz Question Settings'),

EDIT: @karpstrucking Here is the image you requested. sry for delay. requested image of metas

I want to change a meta-box title on the create question page from- "LearnDash Quiz Settings" to "Quiz Settings" on create question page.

I have seen a few posts that explain changing custom posts meta titles but no luck here.

I am attempting to add the changes to a MU custom functions plugin, rather than the theme's functions.php file.

I am admittedly lost on how to do this and have been messing with variations of the following code. newbness ahead... here's a img link illustrating what I'm trying to do. http://take.ms/evyiL

The following code changes the title from LearnDash Question Settings metabox title to Question Settings

add_action('do_meta_boxes', 'my_customize_meta_boxes'); //using do_meta_boxes also allows plugin metaboxes to be modified
function my_customize_meta_boxes(){
  $post_types = get_post_types();
  remove_meta_box( 'sfwd-question_quiz', $post_types, 'normal' );
  add_meta_box('sfwd-question_quiz', __('Quiz Question Settings'), '', $post_types, 'side', 'default', 'sfwd-question');
}

The following code is used to get this to work with your custom meta's

add_action('add_meta_boxes', 'change_meta_box_titles', 999);
function change_meta_box_titles() {
    global $wp_meta_boxes; // array of defined meta boxes
    // cycle through the array, change the titles you want

unset( $wp_meta_boxes ['post']['side']['core']['sfwd-question_quiz']
);
add_meta_box('sfwd-question_quiz',
__('Quiz Question Settings'),

I want to change a meta-box title on the create question page from- "LearnDash Quiz Settings" to "Quiz Settings" on create question page.

I have seen a few posts that explain changing custom posts meta titles but no luck here.

I am attempting to add the changes to a MU custom functions plugin, rather than the theme's functions.php file.

I am admittedly lost on how to do this and have been messing with variations of the following code. newbness ahead... here's a img link illustrating what I'm trying to do. http://take.ms/evyiL

The following code changes the title from LearnDash Question Settings metabox title to Question Settings

add_action('do_meta_boxes', 'my_customize_meta_boxes'); //using do_meta_boxes also allows plugin metaboxes to be modified
function my_customize_meta_boxes(){
  $post_types = get_post_types();
  remove_meta_box( 'sfwd-question_quiz', $post_types, 'normal' );
  add_meta_box('sfwd-question_quiz', __('Quiz Question Settings'), '', $post_types, 'side', 'default', 'sfwd-question');
}

The following code is used to get this to work with your custom meta's

add_action('add_meta_boxes', 'change_meta_box_titles', 999);
function change_meta_box_titles() {
    global $wp_meta_boxes; // array of defined meta boxes
    // cycle through the array, change the titles you want

unset( $wp_meta_boxes ['post']['side']['core']['sfwd-question_quiz']
);
add_meta_box('sfwd-question_quiz',
__('Quiz Question Settings'),

EDIT: @karpstrucking Here is the image you requested. sry for delay. requested image of metas

I want to change a meta-box title on the create question page from- "LearnDash Quiz Settings" to "Quiz Settings" on create question page. 

I have seen a few posts that explain changing custom posts meta titles but no luck here. 

I am attempting to add the changes to a MU custom functions plugin, rather than the theme's functions.phpfunctions.php file. 

I am admittedly lost on how to do this and have been messing with variations of the following code. newbness ahead... here's a img link illustrating what imI'm trying to do. http://take.ms/evyiL

/* The following code changes the title from LearnDash Question Settings metabox title to Question Settings */ add_action('do_meta_boxes', 'my_customize_meta_boxes'); //using do_meta_boxes also allows plugin metaboxes to be modified function my_customize_meta_boxes(){ $post_types = get_post_types(); remove_meta_box( 'sfwd-question_quiz', $post_types, 'normal' ); add_meta_box('sfwd-question_quiz', __('Quiz Question Settings'), '', $post_types, 'side', 'default', 'sfwd-question'); }The following code changes the title from LearnDash Question Settings metabox title to Question Settings

/* The following code is used to get this to work with your custom meta's */ add_action('add_meta_boxes', 'change_meta_box_titles', 999); function change_meta_box_titles() { global $wp_meta_boxes; // array of defined meta boxes // cycle through the array, change the titles you want

add_action('do_meta_boxes', 'my_customize_meta_boxes'); //using do_meta_boxes also allows plugin metaboxes to be modified
function my_customize_meta_boxes(){
  $post_types = get_post_types();
  remove_meta_box( 'sfwd-question_quiz', $post_types, 'normal' );
  add_meta_box('sfwd-question_quiz', __('Quiz Question Settings'), '', $post_types, 'side', 'default', 'sfwd-question');
}

unset( $wp_meta_boxes ['post']['side']['core']['sfwd-question_quiz'] ); add_meta_box('sfwd-question_quiz', __('Quiz Question Settings'),The following code is used to get this to work with your custom meta's

add_action('add_meta_boxes', 'change_meta_box_titles', 999);
function change_meta_box_titles() {
    global $wp_meta_boxes; // array of defined meta boxes
    // cycle through the array, change the titles you want

unset( $wp_meta_boxes ['post']['side']['core']['sfwd-question_quiz']
);
add_meta_box('sfwd-question_quiz',
__('Quiz Question Settings'),

I want to change a meta-box title on the create question page from- "LearnDash Quiz Settings" to "Quiz Settings" on create question page. I have seen a few posts that explain changing custom posts meta titles but no luck here. I am attempting to add the changes to a MU custom functions plugin, rather than the theme's functions.php file. I am admittedly lost on how to do this and have been messing with variations of the following code. newbness ahead... here's a img link illustrating what im trying to do. http://take.ms/evyiL

/* The following code changes the title from LearnDash Question Settings metabox title to Question Settings */ add_action('do_meta_boxes', 'my_customize_meta_boxes'); //using do_meta_boxes also allows plugin metaboxes to be modified function my_customize_meta_boxes(){ $post_types = get_post_types(); remove_meta_box( 'sfwd-question_quiz', $post_types, 'normal' ); add_meta_box('sfwd-question_quiz', __('Quiz Question Settings'), '', $post_types, 'side', 'default', 'sfwd-question'); }

/* The following code is used to get this to work with your custom meta's */ add_action('add_meta_boxes', 'change_meta_box_titles', 999); function change_meta_box_titles() { global $wp_meta_boxes; // array of defined meta boxes // cycle through the array, change the titles you want

unset( $wp_meta_boxes ['post']['side']['core']['sfwd-question_quiz'] ); add_meta_box('sfwd-question_quiz', __('Quiz Question Settings'),

I want to change a meta-box title on the create question page from- "LearnDash Quiz Settings" to "Quiz Settings" on create question page. 

I have seen a few posts that explain changing custom posts meta titles but no luck here. 

I am attempting to add the changes to a MU custom functions plugin, rather than the theme's functions.php file. 

I am admittedly lost on how to do this and have been messing with variations of the following code. newbness ahead... here's a img link illustrating what I'm trying to do. http://take.ms/evyiL

The following code changes the title from LearnDash Question Settings metabox title to Question Settings

add_action('do_meta_boxes', 'my_customize_meta_boxes'); //using do_meta_boxes also allows plugin metaboxes to be modified
function my_customize_meta_boxes(){
  $post_types = get_post_types();
  remove_meta_box( 'sfwd-question_quiz', $post_types, 'normal' );
  add_meta_box('sfwd-question_quiz', __('Quiz Question Settings'), '', $post_types, 'side', 'default', 'sfwd-question');
}

The following code is used to get this to work with your custom meta's

add_action('add_meta_boxes', 'change_meta_box_titles', 999);
function change_meta_box_titles() {
    global $wp_meta_boxes; // array of defined meta boxes
    // cycle through the array, change the titles you want

unset( $wp_meta_boxes ['post']['side']['core']['sfwd-question_quiz']
);
add_meta_box('sfwd-question_quiz',
__('Quiz Question Settings'),
Source Link

Change meta-box title- "LearnDash Quiz Settings" to "Quiz Settings"

I want to change a meta-box title on the create question page from- "LearnDash Quiz Settings" to "Quiz Settings" on create question page. I have seen a few posts that explain changing custom posts meta titles but no luck here. I am attempting to add the changes to a MU custom functions plugin, rather than the theme's functions.php file. I am admittedly lost on how to do this and have been messing with variations of the following code. newbness ahead... here's a img link illustrating what im trying to do. http://take.ms/evyiL

/* The following code changes the title from LearnDash Question Settings metabox title to Question Settings */ add_action('do_meta_boxes', 'my_customize_meta_boxes'); //using do_meta_boxes also allows plugin metaboxes to be modified function my_customize_meta_boxes(){ $post_types = get_post_types(); remove_meta_box( 'sfwd-question_quiz', $post_types, 'normal' ); add_meta_box('sfwd-question_quiz', __('Quiz Question Settings'), '', $post_types, 'side', 'default', 'sfwd-question'); }

/* The following code is used to get this to work with your custom meta's */ add_action('add_meta_boxes', 'change_meta_box_titles', 999); function change_meta_box_titles() { global $wp_meta_boxes; // array of defined meta boxes // cycle through the array, change the titles you want

unset( $wp_meta_boxes ['post']['side']['core']['sfwd-question_quiz'] ); add_meta_box('sfwd-question_quiz', __('Quiz Question Settings'),