Advertisement
fauzanjeg

Remove Video Submit Functions

Jun 15th, 2021
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.60 KB | None | 0 0
  1. /* Start Remove Video Submit Functions */
  2. remove_action( 'init', array( \JNEWS_VIDEO\Frontend\Frontend_Video_Endpoint::getInstance(), 'setup_init' ) );
  3. remove_filter( 'jnews_frontend_submit_add_page_template', array( \JNEWS_VIDEO\Frontend\Frontend_Video_Endpoint::getInstance(), 'page_template' ) );
  4. remove_action( 'jnews_account_right_content', array( \JNEWS_VIDEO\Frontend\Frontend_Video_Endpoint::getInstance(), 'get_right_content' ) );
  5.  
  6. remove_action( 'jnews_after_account_nav', array( \JNEWS_VIDEO\Frontend\Frontend_Video_Endpoint::getInstance(), 'after_account_nav' ) );
  7.  
  8. remove_action( 'delete_attachment', array( \JNEWS_VIDEO\Frontend\Frontend_Video_Endpoint::getInstance(), 'disable_delete_attachment' ) );
  9. remove_filter( 'jnews_account_page_endpoint', array( \JNEWS_VIDEO\Frontend\Frontend_Video_Endpoint::getInstance(), 'account_page_endpoint' ) ); /* put this code before init */
  10.  
  11. remove_filter( 'ajax_query_attachments_args', array( \JNEWS_VIDEO\Frontend\Frontend_Video_Endpoint::getInstance(), 'filter_user_media' ) );
  12. remove_filter( 'media_view_strings', array( \JNEWS_VIDEO\Frontend\Frontend_Video_Endpoint::getInstance(), 'remove_media_tab' ) );
  13. remove_filter( 'upload_size_limit', array( \JNEWS_VIDEO\Frontend\Frontend_Video_Endpoint::getInstance(), 'upload_size_limit' ) );
  14. remove_filter( 'jnews_maxsize_upload_featured_gallery', array( \JNEWS_VIDEO\Frontend\Frontend_Video_Endpoint::getInstance(), 'maxupload_size' ) );
  15. remove_filter( 'jnews_maxsize_upload_featured_image', array( \JNEWS_VIDEO\Frontend\Frontend_Video_Endpoint::getInstance(), 'maxupload_size' ) );
  16. /* END Remove Video Submit Functions */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement