Advertisement
fauzanjeg

Profecient || Remove Meta Description from Profecient Essential plugin

Sep 22nd, 2024
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.34 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Init functions and definitions
  4.  *
  5.  * @package profecient
  6.  * @author jegtheme
  7.  * @since 1.0.0
  8.  */
  9.  
  10. if ( ! defined( 'ABSPATH' ) ) {
  11.     exit;
  12. }
  13.  
  14. defined( 'PROFECIENT' ) || define( 'PROFECIENT', 'profecient-theme' );
  15. defined( 'PROFECIENT_DIR' ) || define( 'PROFECIENT_DIR', plugin_dir_path( __FILE__ ) );
  16. defined( 'PROFECIENT_URL' ) || define( 'PROFECIENT_URL', get_parent_theme_file_uri() );
  17. defined( 'PROFECIENT_ID' ) || define( 'PROFECIENT_ID', 51690769 );
  18. defined( 'ESSENTIAL_PARENT' ) || define( 'ESSENTIAL_PARENT', PROFECIENT );
  19. defined( 'ESSENTIAL_PARENT_NAME' ) || define( 'ESSENTIAL_PARENT_NAME', 'Profecient' );
  20. defined( 'ESSENTIAL_FRAMEWORK_URL' ) || define( 'ESSENTIAL_FRAMEWORK_URL', get_parent_theme_file_uri() . '/lib/essential-framework' );
  21. defined( 'ESSENTIAL_PARENT_URL' ) || define( 'ESSENTIAL_PARENT_URL', get_parent_theme_file_uri() );
  22. defined( 'ESSENTIAL_PARENT_DIR' ) || define( 'ESSENTIAL_PARENT_DIR', plugin_dir_path( __FILE__ ) );
  23.  
  24. require_once get_parent_theme_file_path( 'lib/autoload.php' );
  25. require_once 'lib/essential-framework/bootstrap.php';
  26.  
  27. Profecient\Init::instance();
  28.  
  29. /**
  30.  * Profecient || Remove Meta Description from Profecient Essential plugin
  31.  */
  32. if ( function_exists( 'profecient_essential_add_meta_description' ) ) {
  33.     remove_action( 'wp_head', 'profecient_essential_add_meta_description' );
  34. }
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement