Tag Info

New answers tagged

1

Before anything else: Be really sure that your endpoint to retrieve this information is reasonably secure. (e.g. using SSL and some authentication like a password) Leaking the information which plugins are installed on a site might offer a point of attack for hackers. I am not going to offer you a ready-made solution but outline two different ...


1

Well, first problem: $wp_customize->add_setting( 'tcx_footer_copyright_text', ... echo get_theme_mod( 'tcx_footer_copyright_message' ); Those aren't the same setting names. Note sure why you don't see the default value in the input field, as there's nothing wrong there. Although you should also define the same default in the second parameter of ...


0

Its most probably just a typo. It's here //start copyright settings $wp_customize->add_section('lmao_copyright', array( 'title' => __('Copyright_Details', 'lmao'), 'description' => 'Edit copyright info' )); $wp_customize->add_setting('Copyright_Details', array( 'default' => 'Copyright', 'type' => 'option' )); ...


1

Shortcode callbacks get a third argument with the shortcode name. there's a note about this in the docs: Appears to always appear as third argument as of 2.9.2. add_shortcode('foo', 'wpse173855_shortcode'); add_shortcode('bar', 'wpse173855_shortcode'); function wpse173855_shortcode($atts, $content, $name) { echo '<pre>'; var_dump($name); ...


1

I think you just forgot to run the shortcodes [foo a='b'] and [bar a='c'] through the do_shortcode filter: do_shortcode( '[foo a='b'] [bar a='c']' ) The output of the_content() is filtered through the do_shortcode, so you can just add it into your editor instead. Running your code I get the following output for the $arguments dump: array (size=1) 'a' ...



Top 50 recent answers are included