EJEMPLO SHORDCODE CON ATRIBUTO
///Shortcode con atritubo //Ejemplo de uso [shorcode_name atributo=”Valor Aqui”] echo “el atributo que colocaste es: “; echo $wr_custom_field; echo “casaverde”;Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
///Shortcode con atritubo //Ejemplo de uso [shorcode_name atributo=”Valor Aqui”] echo “el atributo que colocaste es: “; echo $wr_custom_field; echo “casaverde”;Continue reading
add_action( ‘after_setup_theme’, function() { update_option( ‘image_default_link_type’, ‘file’ ); });Continue reading
//To get rid of the selected widgets function unregister_default_wp_widgets() { unregister_widget( ‘WP_Widget_Calendar’ ); unregister_widget( ‘WP_Widget_Archives’ ); unregister_widget( ‘WP_Widget_Categories’ ); unregister_widget( ‘WP_Widget_Recent_Posts’ ); unregister_widget( ‘WP_Widget_Recent_Comments’ ); unregister_widget( ‘WP_Widget_Tag_Cloud’ ); unregister_widget( ‘WP_Widget_Meta’ ); unregister_widget( ‘WP_Widget_Links’ ); unregister_widget( ‘WP_Widget_Pages’ ); unregister_widget( ‘WP_Widget_RSS’ );…Continue reading
add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://damore.nl/wp-content/uploads/2024/02/logo-damore-admin.png’; $logo_width = 300; $logo_height = 101; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…Continue reading
//aanpassen afzender bij registratie etc /** change from e-mail address */ add_filter(‘wp_mail_from’, ‘new_mail_from’); add_filter(‘wp_mail_from_name’, ‘new_mail_from_name’); function new_mail_from($old) { return ‘[email protected]’; } function new_mail_from_name($old) { return ‘D\’Amore – de bruidssalon voor Amersfoort en Arnhem’; }Continue reading
function remove_my_meta_viewport_action() { remove_action(‘wp_head’, ‘et_add_viewport_meta’); } function custom_et_add_viewport_meta(){ echo ‘‘; } add_action( ‘init’, ‘remove_my_meta_viewport_action’); add_action( ‘wp_head’, ‘custom_et_add_viewport_meta’ );Continue reading
//WPCode Snippet: ListMyFiles //Author: Richard Raymond //Date: 20241112 //ARGUMENTS: arguments passed from the short code are: //1. $ftypes: the allowable file types (file extensions) //2. $ffolder: the (local) work folder location relative to the root. (e.g. wp-content/documents/my_special_folder/ ). If left…Continue reading
//WPCode Snippet: ListMyFiles //Author: Richard Raymond //Date: 20241112 //ARGUMENTS: arguments passed from the short code are: //1. $ftypes: the allowable file types (file extensions) //2. $ffolder: the (local) work folder location relative to the root. (e.g. wp-content/documents/my_special_folder/ ). If left…Continue reading