Eng Salah

  • Home
  • Meeting
  • WordPress
    • How to develop a Premium Themes for sell
    • elementor
  • D Elementor Widgets Plugin
Menu
  • Home
  • Meeting
  • WordPress
    • How to develop a Premium Themes for sell
    • elementor
  • D Elementor Widgets Plugin
Search
Close

wordpress functions

  • how to create custom post type WordPress
  • public static function activate, deactivate and uninstall
  • Defining constants example of wordpress
  • Adding functions in class to make your life easier
  • stop access plugin or files directory wordpress
  • Home
  • Docs
  • wordpress functions
  • Defining constants example of wordpress

Defining constants example of wordpress

  function __construct(){
            $this->define_constants();
        }
        public function define_constants(){
            define( 'MV_SLIDER_PATH', plugin_dir_path( __FILE__ ) );
            define( 'MV_SLIDER_URL', plugin_dir_url( __FILE__ ) );
            define( 'MV_SLIDER_VERSION', '1.0.0' );
        }

for Determining Plugin and Content Directories check this link

What are your Feelings
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on June 25, 2022
public static function activate, deactivate and uninstallAdding functions in class to make your life easier

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *