Submenu Page under Settings in Admin Panel

I didn’t test this but i’m pretty sure you just need to remove your code from the admin_menu() function declaration. Like this: add_action(‘admin_menu’, ‘register_my_custom_submenu_page’); function register_my_custom_submenu_page() { add_submenu_page( ‘tools.php’, ‘Submenu Page’, ‘My Custom Submenu Page’, ‘manage_options’, ‘my-custom-submenu-page’, ‘my_custom_submenu_page_content’ ); } function my_custom_submenu_page_content() { ?> <div class=”wrap”> <h2>Page Title</h2> </div> <?php }

How to pass multiple custom fields as shortcode’s parameters

You can do this several different ways. Need to know how you are passing the 1 custom field in your current shortcode. It seems like you might be doing it like this: [your_short_code price=”how_are_you_setting_this”] if this is the case then you can just add more attributes like this: [your_short_code price=”how_are_you_setting_this” next_field=”set_this_field”] // From your code … Read more

WP Posts-pages text hiding does not work

The first thing I see wrong is your first “If” statement. It wrapps everything, including your “return” statement. Assuming the rest works, you might try this: function hide_replace_register( $content ) { if (!is_user_logged_in()) { $updated_content = explode(“<!–hide–>”, $content); $updated_content = explode(“&lt;!–hide–&gt;”, $content); $updated_content = explode(“&lt;!&#8211;hide&#8211;>”, $content); $ucontent = $updated_content[0]; if ($ucontent !== $content) { $ucontent … Read more

Use action, filter, or hook to append HTML to WordPress plugin function

The do_action calls allow you to add an add_action that will run at that point int he code. Based on the code you provided, you can add a new row using the mpp_user_profile_form action, like: add_action( ‘mpp_user_profile_form’, function( $user_id ) { ?> <tr> <p class=”appended-text”> <strong>Note: optimum image size is 200 pixels wide by 200 … Read more