• Resolved enism007

    (@enism007)


    Hi,

    I need assistance in removing the Promote button and column from the Admin Back-end screen.

    Any assistance would be appreciated.

    Thanks in advance.

    Willie

Viewing 6 replies - 1 through 6 (of 6 total)
  • @enism007

    Use this snippet here:

    add_action( 'admin_enqueue_scripts', function() {
      wp_dequeue_script( 'job_manager_job_editor_js' );
    }, 90 );
     
    add_action( 'init', function() {
      if ( class_exists( 'WP_Job_Manager_Promoted_Jobs_Admin' ) ) {
        remove_filter( 'manage_edit-job_listing_columns', [
          WP_Job_Manager_Promoted_Jobs_Admin::instance(),
          'promoted_jobs_columns',
        ] );
      }
    } );
    Thread Starter enism007

    (@enism007)

    @braehler Thank you for your reply.

    What file should I add the snippet?

    Thanks

    Willie

    @enism007

    just put this into the funtions.php of your child theme

    • This reply was modified 6 months, 1 week ago by braehler.
    Thread Starter enism007

    (@enism007)

    @braehler I did that and it crashed my site. That’s why I checked what file.

    Willie

    @enism007

    just tested this on a staging site and it works fine for me.

    Are you sure you copied the whole code and did not miss the closing semicolon?

    Also make sure you put this behind the opening <?php.

    Otherwise there maybe an error in your code or a plugin conflict

    Thread Starter enism007

    (@enism007)

    @braehler Thank you testing for me all working now.

    First time I placed the code at the top of the file under <?php

    This time I placed the code at the end of the file and it worked!

    Thank you for resolving for me.

    Willie

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove Promote button and column’ is closed to new replies.