Question
When I add wordpress escaping code like esc_attr_e to below variable, it writes text instead of html code to my browser: <?php echo esc_attr_e( $redux_demo['editor-text-header-left'], 'hekim' ); ?> when I remove the escaping code, the variable gives html
0
Faruk riza 1 year 0 Answers 85 views

Question
I am having to hook into a plugin and I need to actually output a value I get via jQuery. However, when I try to return it (I have to use return) it just escapes the javascript instead of actually giving me the value. So, the output on the screen is literally the text instead of the value ie:
0
, , Iggy's Pop 1 year 0 Answers 89 views

Question
I have below code to set metebox in function.php. echo '<input type="hidden" name="mytheme_meta_box_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />'; echo '<input type="text" name="', $field['id'], '" id="', $field['id'], '" val
0
Faruk riza 1 year 0 Answers 93 views

Question
I have some questions about escaping.These examples are the things which I couldnt do the true. Must I escape variables, if it is, how can I do it? For example: global $redux_demo; in this code: if ( class_exists( 'Redux' ) ) {
0
Faruk riza 1 year 0 Answers 108 views

Question
I want security for my theme, so I took all different commands from my theme files. If I need to escape these, how can I do it? : <?php get_header(); ?> <h1><?php _e( 'Page not found', 'html5blank' ); ?></h1> <a href="<?php echo home_url(); ?>"&g
0
ahmet kaya 2 years 0 Answers 103 views