Can’t understand apply_filter logic

Thanks for your answers. According to comments above, I modified my code. Now it works. Is it correct way? <?php /* Plugin Name: Test plugin */ $arr = []; add_action( ‘init’, ‘set_var_data’ ); function set_var_data() { global $arr; $arr = [ ‘val’, ‘val2’, ‘val3’ ]; $arr = apply_filters( ‘my_hook’, $arr ); } print_r( $arr );

Mystery line break

You could try this see if any different: <p> <?php $label = apply_filters(‘cm_tooltip_parse’, ‘Label: ‘, true); if ( generate_show_title() ) {$title = get_the_title();} else {$title=””;} echo str_replace( array( “\n”, “\r”), array( ”, ”), $label . $title ); ?> </p> If that works, cm_tooltip_parse or generate_show_title are probably outputting a line break somewhere, but at least … Read more

Is it possible to assign a css id to a row in plugins list table?

Updated answer on how to target with JS: since jQuery is included in wp-admin, you can still target the link with the row’s existing data-slug. Example of how to target all the links: jQuery(‘tr[data-slug=”my-plugin-slug”] a’.css(‘color’, ‘green’); (You can inspect the elements to work out a way to target just one specific link, if that’s your … Read more