Comments (5)
Ad Layers is dependent on Fieldmanager for its admin area. Please ensure you are using the latest version from here: https://github.com/alleyinteractive/wordpress-fieldmanager
Ad Layers requires an update made to Fieldmanager in July 2015 for submenu pages, so it seems that you're running a quite old version.
from ad-layers.
Will do. Thanks for this info!
from ad-layers.
Hi @bcampeau : I am facing the same issue, although I have recent versions for both fieldmanager and ad-layers.
from ad-layers.
Hi @bcampeau : I have figured out the issue and it was in my code. However the error returned needs to be fine tuned.
It will happen when I limit the ad-layer access to some capability.
add_filter( 'register_post_type_args', function( $args, $post_type ) {
if ( 'ad-layer' === $post_type ) {
$args['capabilities'] = [
'edit_posts' => 'manage_advertising',
'edit_others_posts' => 'manage_advertising',
];
}
return $args;
}, 10, 2 );
When the logged in user, doesn't have the capability, this error is returned, while trying to change the settings.
(Ideally if we hide all the options like server settings, then it can be avoided.) If there is other way of doing so, please let me know.
from ad-layers.
We'll take a look at it for the next version, but if you'd like to submit a pull request with a proposed solution you're more than welcome.
from ad-layers.
Related Issues (20)
- Update ad-layers to Node 20 (current lts) HOT 1
- Ad_Layers_DFP::sanitize_key() is stripping valid Ad Unit code characters HOT 1
- Add ability to optionally define ad units in code
- Lazy load and debug mode
- Post types with has_archive can't target singular vs archive
- Allow breakpoint of [0,0] HOT 2
- Create WordPress and DFP user guide
- Add built-in support for Google AMP HOT 6
- Add REST API endpoints HOT 1
- Remove dependence on jQuery HOT 1
- Script tag are being stripped out on VIP Platform HOT 6
- Allow Post ID as a Source option for custom targeting
- Feature/tool for importing/exporting ad layer config between sites HOT 1
- Add Gutenberg block
- Add GitHub Actions CI Coverage HOT 1
- Investigate Google Ad Manager API integration opportunities
- Take advantage of autoloaders for including new Ad Servers
- Is this plugin still being maintained? HOT 1
- Duplicate entries in `ad_layers` option HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ad-layers.