Earlier it was giving you error. Try this. I have fixed errors in PHP syntax.
function as_pdf_link( $strContent ){
global $wp_query;
$strHtml="
<div id="aspdf">
<a target="_new" href="" . get_bloginfo('wpurl') . '/wp-content/plugins/as-pdf/generate.php?post=" . $wp_query->post->ID . "" onclick="open(this.href, this.target, \'width=600, height=450, top=200, left=250\'); return false;">
<span>' . stripslashes( get_option( 'as_pdf_linktext' ) ) . '</span>
</a>
</div>
';
return $strContent . $strHtml;
}
Related Posts:
- How to use is_single and get_post_type within a plugin?
- Getting a “Warning: call_user_func_array()” error whenever I install/update a plugin
- Preventing My Plugin From Being Used For Free
- What is wordpress way to access a plugin’s classes/models to load custom post type data?
- Change wp-login to custom URL login page
- How do I get a post author’s image/avatar via RSS from another blog?
- Shortcode not getting replaced
- Maintaining plugin addons while upgrading
- what is name of this plugin used for photo gallery page [closed]
- Why can’t I call a (member) function from within a foreach?
- Plugin that will output submitted form data for user? [closed]
- WordPress plugin to auto execute php script on a specific time?
- Vulnerability Concern From the Plugin or From Not Updating the Plugin?
- How to import WordPress site to new WordPress site?
- PHP if statement with German umlauts [closed]
- Why does this code snippet create a critical error on my site? [closed]
- Can backlinks to my site increase my chances of plugin rejection
- Hide a certain category name from Related Posts
- Custom Font Complications (WordPress) [closed]
- How does translation (gettext) work for translating config file of plugin?
- Admin page button create new
- Must use Plugin not updating HTML code in head
- Restore with Duplicator, URL is concatenated twice
- Installing plug ins on a wordpress hosted site
- wp_logout_url($redirect); is not working in wordpress
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- How do I link an image in my plugin so it displays on WordPress?
- display unique post per category
- How to display a widget on a page with no theme?
- Prevent plug-in scripts on a specific template?
- using wp_footer hook in a plugin
- WordPress “Add new tag” button is not working
- Cannot access empty property error in Advanced Access Manager
- I’m looking for a visual composer / builder plugin that supports RTL
- Which is a better practice when writing shortcodes: pack lots of configuration parameters or just give an id?
- Determining Whether Automatic Upgrade will Fail?
- I’m having several WP issues, especially with missing images
- I’m looking for a plugin to execute a specific task a certain time
- jQuery gallery plugin to interface with Picasa
- Looking for a photo gallery plugin [closed]
- Get Page URI for QR Code PHP [closed]
- Show an admin menu item in Editor role
- Want to create custom design of progress indicator in wpforms
- In a WPMU that uses several different domains, how to enable users to register subdomains of any domain from the main site?
- WordPress Custom Hook with Class method
- How create bulk website with amount, total, and checkout fields?
- Open_basedir errors – But setting basedir to none redults in 502 Bad Gateway
- Update automatically a form inside a function of a plugin
- How to prepare (compress/zip) a plugin to enable updating instead of adding new instance?
- add a hook of Woocommerce to a plugin but it only shows and doesn’t function properly
- Change language in SiteOrigin Widgets
- one url for all pages
- Include my files in a plugin? [duplicate]
- Some Widgets in the Right Side Bar and the whole Footer section is not working in a WordPress Site
- Swap picture in slider plugin
- Using foreach loop for `$instance` of form and update array widget iteration
- How to call a function from inside class to outside class
- how to insert thousands of posts faster?
- Redeclare a plugins function/class in my theme?
- Passing data from a page to an external link
- Send email when a user registers Rest api
- Avoid enormous network payloads
- Return function results within shortcode
- There was a problem uploading the cover image in buddypress, while uploading profile image?
- WP-CLI plugin delete command fails silently
- How to create a custom control in customizer
- Sanitize AROUND shortcode
- Frontend is empty wordpress
- Create shared actions for admin and users with plugin bolierplate
- “Share” Content from Another Site as Post
- Plugin Screenshots not showing
- How to Insert images in WordPress using code
- WP plugin calls for custom pages
- Javascript in plugin not working
- Theme editor removes backslashes
- It possible to implement an adhoc php web application with wordpress?
- Jetpack Comments Change Placeholder Text
- shortcode which is introduced into entry the blog, and appears in side bar
- Images not showing on homepage after migration [duplicate]
- import a latest vimeo user video into a page
- Create user assessment and use results in sql query
- Plugin Hook: Get posts
- Google Language Translator – Manage Translation
- WordPress multisite haml templates
- Modify plugin and submit to directory
- Sort Reviews/Ratings by date on Woocommerce
- Is it safe to increase/alter the size of the wp_post.guid column from VARCHAR(255) to VARCHAR(2048)?
- correct validate inputs
- Language switcher with flags – Polylang WP plugin
- PM PRO addon package check user access to a specific post
- wordpress or jquery a dynamic photo gallery
- How to add image for custom taxonomy
- Plugin Beauty Contact Popup Form with while loop
- How do I edit the action URL on a widget form from a plugin?
- Display Any Field fromAdmin Panel in Frontend via Shortcode?
- How can JavaScript code be added before the closing HTML body tag?
- PHP Fatal error: Cannot redeclare distance() when making a new block
- XMLRPC error: xmlrpc.client.Fault:
- plugin development code standard not matching for SQL query
- Ajax response from Media Selection does not update ALL information more than once