Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `add_shortcode('my_shortcode_str', 'my_shortcode_fx');
- function my_shortcode_fx() {
- if (is_page()) {
- /* only render on front-end, otherwise kills lazy load of page parent field in WP edit screen */
- $content = /*something*/;
- return $content;
- } // ends is_page
- }
- `
Add Comment
Please, Sign In to add comment