We can test our website speed on website https://webpagetest.org.
If you are developer and what to test your website though coding then checkout below Webpagetest API example.
We send the Webpagetest API rest request to test the site.
<?php | |
if ( ! function_exists( 'prefix_modify_mime_type' ) ) : | |
/** | |
* Modify the MIME types. | |
* | |
* @since x.x.x | |
* | |
* @param array $args File upload arguments. | |
* @return array. |
We can test our website speed on website https://webpagetest.org.
If you are developer and what to test your website though coding then checkout below Webpagetest API example.
We send the Webpagetest API rest request to test the site.
<?php | |
/** | |
* Change Button Text | |
* | |
* @todo Change the `prefix_` with your own unique string. | |
* | |
* @param string $button_text. | |
* @return string | |
*/ | |
function prefix_change_load_more_text( $button_text = '' ) { |
<?php | |
if( is_callable( 'Astra_Sites_Admin::get_instance' ) ) { | |
remove_action( 'admin_notices', array( Astra_Sites_Admin::get_instance(), 'admin_notices' ) ); | |
} |
__ ____ | |
/ / ____ ________ ____ ___ / _/___ _______ ______ ___ | |
/ / / __ \/ ___/ _ \/ __ `__ \ / // __ \/ ___/ / / / __ `__ \ | |
/ /___/ /_/ / / / __/ / / / / / _/ // /_/ (__ ) /_/ / / / / / / | |
/_____/\____/_/ \___/_/ /_/ /_/ /___/ .___/____/\__,_/_/ /_/ /_/ | |
/_/ | |
Font Info: Slant by Glenn Chappell 3/93 -- based on Standard |
<?php | |
/** | |
* Show RSS feed with Shortcode. | |
* | |
* @example [show_rss_feed url="https://maheshwaghmare.com/feed/"] | |
* | |
* @todo Change the `prefix_` and with your own unique prefix. | |
* | |
* @since 1.0.0 | |
*/ |
<?php | |
/** | |
* Add Custom Post Types (CPT) to feeds | |
* | |
* @todo Change the `prefix_` and with your own unique prefix. | |
* | |
* @since 1.0.0 | |
* | |
* @return object | |
*/ |
<?php | |
add_shortcode( 'child_pages_list', function() { | |
$args = array( | |
'post_parent' => get_the_ID(), | |
'post_type' => get_post_type(), | |
); | |
$posts = get_children( $args ); | |
ob_start(); |
<?php | |
if( ! function_exists( 'prefix_get_plugin_deactivate_link' ) ) : | |
/** | |
* Generate and get the plugin deactivate link. | |
* | |
* E.g. | |
* | |
* $deactivate_url = prefix_get_plugin_deactivate_link( 'free-images/free-images.php', plugin_basename( __FILE__ ) ); | |
* |