How to hook add_action() into after category description with id?

Check this blog about adding something before the post content. Here is the code you need to add in functions.php: add_filter(‘the_content’, ‘add_content_before’); function add_content_before($content) { $before_content = “Your pre-content to be here”; $fullcontent = $before_content . $content ; return $fullcontent; }

RTrouble passing arguments to action

You have an action hook named use_colors_here and you run the hook using do_action( ‘use_colors_here’, $data ), but I don’t see where you call add_action() for that hook? I mean, the do_action() and add_action() should be used like so: // This adds a callback to the use_colors_here hook. add_action( ‘use_colors_here’, ‘some_function’ ); // And this … Read more

How can I change the date format of the revision list?

You can filter the output like bellow: <?php /** * @param $revision_date_author * @param $revision * @param $link * @return mixed */ function filter_wp_post_revision_title_expanded( $revision_date_author, $revision, $link ) { $revision = get_post( $revision ); if ( ! $revision ) { return $revision; } if ( ! in_array( $revision->post_type, array( ‘post’, ‘page’, ‘revision’ ), true ) … Read more