Arguments for aioseo_facebook_tags
$attributes = [ ‘og:site_name’ => ”, ‘og:type’ => ”, ‘og:title’ => ”, ‘og:description’ => ”, ‘og:url’ => ”, ‘fb:app_id’ => ”, ‘fb_admins’ => ”, ‘og:image’ => ”, ];Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
$attributes = [ ‘og:site_name’ => ”, ‘og:type’ => ”, ‘og:title’ => ”, ‘og:description’ => ”, ‘og:url’ => ”, ‘fb:app_id’ => ”, ‘fb_admins’ => ”, ‘og:image’ => ”, ];Continue reading
function mepr_custom_pdf_invoice_fonts( $fonts ) { return array( ‘roboto’ => array( ‘R’ => ‘Roboto-Regular.ttf’, ‘B’ => ‘Roboto-Bold.ttf’, ‘I’ => ‘Roboto-Italic.ttf’, ‘BI’ => ‘Roboto-Bold.ttf’, //’useOTL’ => 0xFF, ‘useKashida’ => 75, ), ); } add_filter( ‘mepr-pdf-invoice-fonts’, ‘mepr_custom_pdf_invoice_fonts’ ); function mepr_custom_options_dynamic_attrs( $attrs ) {…Continue reading
add_action( ‘woocommerce_single_product_summary’, ‘display_product_formated_dimensions_table’, 25 ); function display_product_formated_dimensions_table(){ global $product; if ( $product->has_dimensions() ) { echo ‘ ‘ . __( ‘Dimensions’, ‘woocommerce’ ) . ‘ ‘ . esc_html( wc_format_dimensions( $product->get_dimensions( false ) ) ) . ‘ ‘; } }Continue reading
add_filter( “aioseo_save_term”, “aioseo_filter_term_data” ); function aioseo_filter_term_data( $term ) { if ( 12 === (int) $term->term_id ) { $term->title = ‘Some new title here’; } return $term; }Continue reading
add_filter( “aioseo_save_post”, “aioseo_filter_post_data” ); function aioseo_filter_post_data( $post ) { if ( 10 === (int) $post->post_id ) { $post->title = ‘Some new title here’; } return $post; }Continue reading
add_filter( ‘aioseo_prev_link’, ‘aioseo_filter_prev_link’ ); function aioseo_filter_prev_link( $previous ) { return ”; }Continue reading
add_filter( ‘aioseo_next_link’, ‘aioseo_filter_next_link’ ); function aioseo_filter_next_link( $next ) { return ”; }Continue reading
add_filter( ‘aioseo_meta_views’, ‘aioseo_filter_meta_views’ ); function aioseo_filter_meta_views( $views ) { if ( is_category() ) { return []; } return $views; }Continue reading
add_filter( ‘aioseo_get_post_id’, ‘aioseo_change_post_id’ ); function aioseo_change_post_id( $postId ) { if( is_post_type_archive( ‘product’ ) ) { $postId = 123; } return $postId; }Continue reading
add_filter( ‘aioseo_flyout_menu_enable’, ‘aioseo_filter_flyout_menu_enable’ ); function aioseo_filter_flyout_menu_enable( $enabled ) { if ( ! aioseo()->access->isAdmin() ) { $enabled = false; } return $enabled; }Continue reading