i am create wordpress plugin that show error?

If you want to add headers this can only be done before you are returning data. Headers are send at the start of a response from the browser. What probably goes wrong is that you have an empty line on the top of your file. Or you do somewhere an echo (or something a like). … Read more

My page content doesn’t show up

you need to go through the usual steps to find the problem I think the most important are: Disable Plugins Can you log into wp-admin or is that a white screen too? If you can log in go and deactivate all your plugins and refresh the home page – can you see your content? If … Read more

Automatically put a menu on every post

Without knowing where exactly you want to put this (all posts, certain categories, etc.) I will give you the way to do it across the board. First step is to go into functions.php and find the function where your menus are being defined. Inside that function add the following code: register_nav_menu( ‘dmca’, __( ‘DMCA’, ‘theme-slug’ … Read more

Need help saving input fields for Security Deposit plugin in WC Vendors page

You will need to add a custom field to the product-edit form, saving is done automatically if you correctly format your input id. WCVendors_Pro_Form_Helper::input( array( ‘type’ => ‘checkbox’, ‘post_id’ => $object_id, ‘id’ => ‘wcv_custom_product__wc_security_deposits_enable’, ‘label’ => __( ‘Ingredients’, ‘wcvendors-pro’ ), ‘placeholder’ => __( ‘Ingredients’, ‘wcvendors-pro’ ), ‘desc_tip’ => ‘true’, ‘description’ => __( ‘Enable this to … Read more

Call to a member function get_page_permastruct() on null

adding it to ‘init’ action hook works function update_menu_custom(){ wp_update_nav_menu_item(2, 0, array( ‘menu-item-title’ => __(‘Home’), ‘menu-item-classes’ => ‘home’, ‘menu-item-url’ => home_url( “https://wordpress.stackexchange.com/” ), ‘menu-item-status’ => ‘publish’)); } add_action(‘init’,’update_menu_custom’); But it still doesn’t works as expected, It adds too many menu items with name home, But that is a different issue