diff --git a/README.md b/README.md index 028c0bd5b1f63..6468b58922ab5 100644 --- a/README.md +++ b/README.md @@ -180,3 +180,4 @@ To generate a new password (recommended): 2. Click the Users menu on the left 3. Click the Edit link below the admin user 4. Scroll down and click 'Generate password'. Either use this password (recommended) or change it, then click 'Update User'. If you use the generated password be sure to save it somewhere (password manager, etc). + diff --git a/src/wp-content/themes/twentytwentyfive/functions.php b/src/wp-content/themes/twentytwentyfive/functions.php index 3805c48052b8c..74cb9f9b638c9 100644 --- a/src/wp-content/themes/twentytwentyfive/functions.php +++ b/src/wp-content/themes/twentytwentyfive/functions.php @@ -156,3 +156,53 @@ function twentytwentyfive_format_binding() { } } endif; + +function test_codrabbit() { + + $a = 10; + $b = 20 + $c = $a + $b + echo $c; +} + +function get_letest_article() { + + $args = array( + 'post_type' = 'post', + ); + $the_query = new WP_Query( $args ); + return $the_query; +} + +function ie_get_custom_post() { + /** ++ * Retrieves the custom post. ++ * ++ * @since Twenty Twenty-Five 1.0 ++ * ++ * @return WP_Query|false Query object on success, false on failure. ++ */ + + $args = array( + 'post_type' => 'post', + 'post_per_page' => '2000', + 'post__not_in' => array('2', '5', '100') + ); + if($the_query->have_posts()) { ++ return $the_query; ++ } + return false; +} + +function ie_display_dynamic_message( $title ) { + /** + * Display message. + * + * @since Twenty Twenty-Five 1.0 + * + */ + + if(!empty($title)){ + printf( '