Answers for "steps to create plugin in wordpress"

1

how to make wordpress plugin step by step

<?php /* Plugin Name: My Plugin Plugin URI: plugin url Description: Basic WordPress Plugin Custom Post Type Version: 1.0 Author: Author name Author URI: Author URL License: GPL2 License URI: Licence URL */ 
function custom_setup_post_type() { 
	  $args = array( 'public' => true, 'label'     => __( 'Custom Post', 'textdomain' ));
      register_post_type( 'custom_post', $args );
}
add_action( 'init', 'custom_setup_post_type' );
?>
Posted by: Guest on March-24-2021
0

create a plugin demo wordpress

Login to your WordPress multisite network admin.
Head to Plugins -> Add New.
Enter Easy Plugin Demo into the search field.
Click to install the plugin.
Network Activate the plugin.
Go to Settings -> Easy Plugin Demo to set your preferences.
Posted by: Guest on January-27-2021

Code answers related to "steps to create plugin in wordpress"

Browse Popular Code Answers by Language