//hook function wordpress_wp_get_archives($args = ”) { global $wpdb, $wp_locale; $defaults = array( ‘type’ => ‘monthly’, ‘limit’ => ”, ‘format’ =>…
FROM : http://localhost/worpdress/test/ _TO_ http://localhost/worpdress/bloh/test/ function filter_post_link($permalink, $post) { if ($post->post_type != ‘post’) return $permalink; return ‘blog’.$permalink; } add_filter(‘pre_post_link’, ‘filter_post_link’, 10,…
Src : http://www.wpbeginner.com/wp-themes/how-to-add-facebook-open-graph-meta-data-in-wordpress-themes/ //Adding the Open Graph in the Language Attributes function add_opengraph_doctype( $output ) { return $output . ‘ xmlns:og=”http://opengraphprotocol.org/schema/”…
This hook will be remove draft item listing from relationship field 1) For Relationship field add_filter(‘acf/fields/relationship/query/name=feature_events_listing’, ‘relationship_options_filter’,99, 3); function relationship_options_filter($options,…
// Disable Plugin Edit/Deactivation from WordPress Admin Panel add_filter( ‘plugin_action_links’, ‘disable_plugin_deactivation’, 10, 4 ); function disable_plugin_deactivation( $actions, $plugin_file, $plugin_data, $context…