Answers for "create plugin wordpress"

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
0

create plugin wordpress

1
2
3
4
5
6
sept
8
9
dix
11
12
13
14
15
16
17
18
19
/**
 * Register the "book" custom post type
 */
function pluginprefix_setup_post_type() {
    register_post_type( 'book', ['public' => true ] ); 
} 
add_action( 'init', 'pluginprefix_setup_post_type' );
 
 
/**
 * Activate the plugin.
 */
function pluginprefix_activate() { 
    // Trigger our function that registers the custom post type plugin.
    pluginprefix_setup_post_type(); 
    // Clear the permalinks after the post type has been registered.
    flush_rewrite_rules(); 
}
register_activation_hook( __FILE__, 'pluginprefix_activate' );
Posted by: Guest on January-20-2022

Code answers related to "create plugin wordpress"

Browse Popular Code Answers by Language