Category : settings

Today I have a problem with phpmyadmin and redis, meaning that when I try to view the phpmyadmin management page the following error appears: phpMyAdmin – Error Error during session start; please check your PHP and / or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your ..

Read more

I added my own settings to change the font. This is the code that I got. $wp_customize->add_setting( ‘calendar_title_font’, array( ‘default’ => ”, ‘sanitize_callback’ => ‘skyrocket_text_sanitization’, ‘sanitize_js_callback’ => ‘skyrocket_google_font_sanitization’, ‘transport’ => ‘postMessage’, ) ); $wp_customize->add_control( new Skyrocket_Google_Font_Select_Custom_Control( $wp_customize, ‘calendar_title_font’, array( ‘label’ => __( ‘Font Family’, ‘blah’ ), ‘section’ => ‘calendar_title’, ‘input_attrs’ => array( ‘font_count’ => ’20’, ..

Read more

I am developing my first WordPress plugin. I am trying to create a admin settings page using add_settings_field. The settings page works just fine, but I am having issues setting a default value. I’ve tried putting the default value as value="" in input field: public function title_0_callback() { printf( ‘<input class="regular-text" type="text" name="ie_blocker_option_name[title_0]" id="title_0" value="The ..

Read more

New to php with VisualStudioCode, i’m searching a method (settings, extensions, …) to add a path to include php library, for code completion only. Let’s say, for the example, that I’m working on a wordpress plugin. My VSC working directory is /Users/richnou/Documents/my-wp-plugin/ which contains only the plugins files (php, sass, css, gitignore, etc…) ; they ..

Read more