Add Another Meta Keyword to Each Post

add_filter( ‘aioseo_keywords’, ‘aioseo_filter_keywords’ ); function aioseo_filter_keywords( $keywords ) { if ( is_singular() ) { $keywords = explode( ‘,’, $keywords ); array_push( $keywords, ‘anotherkeyword’ ); $keywords = implode( ‘,’, $keywords ); } return $keywords ; }Continue reading

Tablepress_get_cell

function tablepress_cell_to_url_shortcode( $atts ) { $atts = shortcode_atts( array( ‘table_id’ => ”, ‘row’ => 1, ‘col’ => 1, ‘page’ => ”, // Zielseite ‘param’ => ‘wert’, // Parametername ), $atts, ‘tablepress_link’ ); $table_data = tablepress_get_table( $atts[‘table_id’], true ); if (…Continue reading

Donation Form Email Check (Advanced)

add_filter(‘charitable_validate_donation_form_submission_email_check’, ‘charitable_test_for_email’, 10, 2 ); function charitable_test_for_email( $valid, $submitted ) { $email = $submitted->get_submitted_value( ’email’ ); if ( ! is_valid_email( $email ) ) { return false; } return $valid; } function is_valid_email($email) { // Use PHP’s built-in function to split…Continue reading