Support » Plugin: YOURLS Link Creator » Follow up re your kind mod/update

  • Resolved neotrope

    (@neotrope)


    Hi, Andrew
    was revisiting this to see if we can get it to work, just to put a nail in this one completely…

    (sorry)

    your suggested code for this particular element causes all posts to be hidden and the actual [] check boxes for visibliity tab to be completely empty, meaning likely wrong thing getting targeted or missing a closing syntax. I can’t quite sort ir.

    Can you give this one last look? (TIA!)

    add_filter( 'manage_posts_columns', 'rkv_post_column_items' );
    
    function post_column_items( $columns ) {
    
    	// Remove the column
    	unset( $columns['yourls-click'] );
    
    	// Send back the array of columns.
    	return $columns;
    }

    https://wordpress.org/plugins/yourls-link-creator/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrew Norcross

    (@norcross)

    the function name didn’t match.

    add_filter( 'manage_posts_columns', 'rkv_post_column_items' );
    
    function rkv_post_column_items( $columns ) {
    
    	// Remove the column
    	unset( $columns['yourls-click'] );
    
    	// Send back the array of columns.
    	return $columns;
    }

    that should do it.

    neotrope

    (@neotrope)

    Hi, Andrew
    oh, yeah – duh 🙂

    ( facepalm mode )

    Thanks so much !

    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.