How to Show Admin Notice on Plugin Activation?

1. Add the code in the Notice Class like Below –

  2. Include the Notice class file in the Main class of the plugin and register the admin hook in the define_admin_hooks method –

3. Add the code in the Main plugin […]

Read more

WPCS with Visual Studio Code

Installation The easiest way to get started with PHP_CodeSniffer is to download the Phar files for each of the commands:

[/crayon] Composer If you use Composer, you can install PHP_CodeSniffer system-wide with the following command:

[/crayon] Make sure you have the composer bin dir in […]

Read more

Change Custom Post Type Name Safely.

Just replace the second line’s post type names:


Read more

Conditional Script Loading for Shotcode

In the functions.php file or in your plugin file write the code below –

Read more

How to Set a default Title for the custom post?

Now use the function

Read more

How to a Add Custom Meta Box for Multiple Post Type

See: Stackexchange , Codex

Read more

How to add inline style to WordPress Theme

Include the file in the functions.php

Read more

How to show image from CodeStar Metabox

The non-repeatable image field creation:

02. Calling the image on front-end:

Read more