How to auto strip hyperlinks & images in wordpress post

Here is one idea to strip link- and image tags from the post content (before you save it) by using the edit_post_content filter and the wp_kses function: add_filter( ‘edit_post_content’, ‘my_edit_post_content’, 10, 1 ); function my_edit_post_content( $content ) { if (!current_user_can(‘manage_options’)) { // only strip for non-admins global $allowedposttags; $mytags = $allowedposttags; unset($mytags[‘a’]); // don’t allow … Read more

Hook functions for Wp e-commerce? [closed]

1.customer register success event WordPress: user_register 2.customer login WordPress: wp_login 3.sales order place after WP E-Commerce: wpsc_purchase_log_save 4.Hook function to change order shipping status from wp-admin end WP E-Commerce: wpsc_update_purchase_log_status To identify the status: INCOMPLETE_SALE = 1; ORDER_RECEIVED = 2; ACCEPTED_PAYMENT = 3; JOB_DISPATCHED = 4; CLOSED_ORDER = 5; PAYMENT_DECLINED = 6; REFUNDED = 7; … Read more

Replace video url with video player

There appear to be a few problems with your plugin as written. As mentioned in the comments above, WordPress has the built-in ability to automatically embed certain types of media, including YouTube videos, given a URL. See the Codex page on Embeds. So it’s likely that your plugin isn’t necessary, at least for a YouTube … Read more

How to dynamically change spots of text in custom page?

As @Luccas said himself, adding meta boxes for separate areas of content are a good way of tackling this problem. This can be achieved using add_meta_box(). Although there are a number helpful plugins and libraries for handling meta box registration such as ACF and CMB2, plugin recommendations are off topic here at WordPress StackExchange.

WordPress plugin with its own “site”/theme

I don’t quite know what you mean by “include a theme” and you are talking about a potentially large and complicated project but I think you should be able to control the display of your plugin content with the template_redirect hook. function template_redir_wpse_99209($content) { // code or file include, for example // exit; } add_action(‘template_redirect’,’template_redir_wpse_99209′,1); … Read more

Dynamic Image Replacement through call rail phone call tracking plugins in wordpress

I apologize for the trouble you experienced trying to get dynamic number insertion to work with images. Admittedly, our previous method for image substitution was confusing. We’ve updated our docs and simplified our procedure: http://www.callrail.com/docs/web-integration/dynamic-number-insertion/images/ Anyone that is having issues is welcome to call us directly at 888-907-4718 and we will work with you to … Read more