Social Share
echo social_share_links(); // echo “HI”; //this is revisionContinue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
echo social_share_links(); // echo “HI”; //this is revisionContinue reading
add_filter( ‘aioseo_description’, ‘aioseo_filter_description’ ); function aioseo_filter_description( $description ) { $exclude = [15,223]; if ( false !== in_array( get_the_ID(), $exclude ) ) { return ”; } return $description; }Continue reading
/** * Add the unfiltered_html capability to the editor role. * Be careful which users you grant this capability to. */ add_filter( ‘map_meta_cap’, function ( $caps, $cap, $user_id ) { // Change editor with the user role you want to…Continue reading
/* * WebMerge AGreements */ add_action(‘frm_after_create_entry’, ‘formidable_send_to_webmerge’, 0, 2); add_action(‘frm_after_update_entry’, ‘formidable_send_to_webmerge’, 0, 2); function formidable_send_to_webmerge($entry_id, $form_id){ if($form_id == 23){ $webmerge_url = ‘https://www.webmerge.me/route/28114/ymffng’; }elseif($form_id == 43){ $webmerge_url = ‘https://www.webmerge.me/route/28347/lmtb8i’; } else{ return; } $frm_field = new FrmField(); $fields = array(‘fields’ =>…Continue reading
$therow = htmlspecialchars($_REQUEST[‘cemrow’]); echo ‘This row is ‘.$therow.’‘; $Host = “localhost”; $User = “i9065950_wp2”; $Password = “E.SaEj4ol3IAOnlC0ur27”; $DBName = “i9065950_wp2”; $Table = “cemdata”; $cemetery = “Boscombe”; $query = “SELECT * from cemdata where iroot like ‘$therow%’ order by col ASC”;…Continue reading
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
/** * Send a server-side event to the FB Conversions API when a Gravity Forms form is submitted using the Conversion Pixels addon. * * @param array $entry The entry data. * @param array $form The form data. */ add_action(…Continue reading
add_filter( ‘aioseo_schema_output’, ‘aioseo_schema_change_urls’ ); function aioseo_schema_change_urls( $graphs ) { if ( false === strpos( $_SERVER[‘REQUEST_URI’], ‘home-search/listing/’ ) ) { return $graphs; } $request_uri = explode( ‘?’, $_SERVER[‘REQUEST_URI’] ); $uri = trim( ( $request_uri[0] ?? ” ), ‘/’ ); $old_url =…Continue reading